xj/yii2-lazyload-widget yii2-lazyload-widget

yii2-lazyload-widget

http://www.appelsiini.net/projects/lazyload

composer.json

"require": {
        "xj/yii2-lazyload-widget": "*"
},

In View

<img class="lazy" data-original="img/example.jpg" width="640" height="480">
use yii\web\View;
use xj\lazyload\LazyloadAsset;
LazyloadAsset::register($this);
$this->registerJs('$("img.lazy").lazyload();'
        , View::POS_READY);

In Assets depends

public $depends = [
    'xj\lazyload\LazyloadAsset',
];

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.9.6 is the latest of 4 releases



BSD-3-Clause license
Stats
16 github stars & 6 github forks
0 downloads in the last day
46 downloads in the last 30 days
4923 total downloads