panalex / yii2-lazyload-widget
wrapper of https://github.com/verlok/lazyload library
Package info
github.com/panalex/yii2-lazyload-widget
Type:yii2-extension
pkg:composer/panalex/yii2-lazyload-widget
v0.1
2017-07-20 12:19 UTC
Requires
- bower-asset/vanilla-lazyload: ~8.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-01 09:14:28 UTC
README
Wrapper of LazyLoad (vanilla-lazyload) library.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist panalex/yii2-lazyload-widget "*"
or add
"panalex/yii2-lazyload-widget": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
use panalex\lazyload\LazyLoad; echo LazyLoad::widget(['src' => 'url/to/your/image.jpg']);
License
The BSD License (BSD). Please see License File for more information.