toriphes/yii2-widget-lazyload wrapper of http://www.appelsiini.net/projects/lazyload jquery library

extensionwidgetimagelazyload

yii2-widget-lazyload

Latest Stable Version Total Downloads Latest Unstable Version License

Wrapper of lazy loading jquery library.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist toriphes/yii2-widget-lazyload "*"

or add

"toriphes/yii2-widget-lazyload": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

use toriphes\lazyload\LazyLoad;

echo LazyLoad::widget(['src' => 'url/to/your/image.jpg']);

//enable fallback for non JavaScript user
echo LazyLoad::widget(['src' => 'url/to/your/image.jpg', 'fallback' => true]);

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.0 is the latest of one release



BSD-3-Clause license
Stats
6 github stars & 4 github forks
15 downloads in the last day
450 downloads in the last 30 days
18072 total downloads