Publication time: Wednesday, February 24, 2016 (4 years ago)

Created by: Семенов Александр Сергеевич

Category: Other

Current version: 1.0.0
Nov 24, 2015, 10:26:57 PM (4 years ago)

Packagist: toriphes/yii2-widget-lazyload


: 15395 (Per month: 286)

Type of: Компонент


Latest Stable Version Total Downloads Latest Unstable Version License

Wrapper of lazy loading jquery library.


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.


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]);

All Comments (0)
No Comments

dev-master — Nov 24, 2015, 10:26:57 PM (4 years ago)

1.0.0 — Nov 24, 2015, 10:26:57 PM (4 years ago)

Стандартная установка:

Добавьте composer.json файл вашего проекта:

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

Запустите обновление зависимостей

Читать про обнолвение SkeekS CMS