cluwong/yii2-lazy

Lazy load wrapper.

Installs: 607

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.0 2018-07-06 04:02 UTC

This package is not auto-updated.

Last update: 2025-06-14 17:31:08 UTC


README

This is Yii2 wrapper class for http://jquery.eisbehr.de/lazy/.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist cluwong/yii2-lazy "*"

or add

"cluwong/yii2-lazy": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?php 
use cluwong\lazy\Lazy
Lazy::widget(); 
?>
<img class="lazy" data-src="/path/to/image.jpg" />

For more examples see http://jquery.eisbehr.de/lazy/#examples.