jalle19/yii-lazy-image

Lazy image loader for the Yii framework

1.0.2 2014-06-28 08:52 UTC

This package is auto-updated.

Last update: 2024-10-13 00:51:28 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