Время публикации: среда, 24 февраля 2016 г. (8 лет назад)

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

Категория: Прочее

Актуальная версия:
1 янв. 1970 г., 3:00:00 (54 года назад)

Packagist: toriphes/yii2-widget-lazyload

: https://github.com/toriphes/yii2-widget-lazyload

:

Тип: Компонент

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

Все комментарии (0)
Нет комментариев

dev-master — 1 янв. 1970 г., 3:00:00 (54 года назад)

1.0.0 — 1 янв. 1970 г., 3:00:00 (54 года назад)

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

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

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

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


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