Lazy image loader for the Yii framework
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.
Require the project in your
composer.json, then use it like this:
echo \yiilazyimage\components\LazyImage::image($url, $alt, $htmlOptions);
This project is licensed under the MIT license