jalle19 / yii-lazy-image
Lazy image loader for the Yii framework
1.0.2
2014-06-28 08:52 UTC
Requires
- php: >=5.3.0
- yiisoft/yii: 1.1.*
This package is auto-updated.
Last update: 2026-03-13 03:48:47 UTC
README
Lazy image loader for the Yii framework. It is implemented as a static class which leverages jQuery Unveil to load images lazily. The interface is the same as CHtml::image() so existing code can easily be adapted to use it.
Usage
Require the project in your composer.json, then use it like this:
echo \yiilazyimage\components\LazyImage::image($url, $alt, $htmlOptions);
License
This project is licensed under the MIT license