panalex / yii2-lazyload-widget
wrapper of https://github.com/verlok/lazyload library
Installs: 1 097
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:yii2-extension
Requires
- bower-asset/vanilla-lazyload: ~8.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-10 03:10:36 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.