2017 © Pedro Peláez
 

yii2-extension yii2-lazysizes

High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.

image

davidhirtz/yii2-lazysizes

High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.

  • Thursday, July 26, 2018
  • by davidhirtz
  • Repository
  • 1 Watchers
  • 2 Stars
  • 110 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

yii2-lazysizes extension

lazysizes is a fast (jank-free), SEO-friendly and self-initializing lazyloader for images (including responsive images picture/srcset), iframes, scripts/widgets and much more., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

php composer.phar require --prefer-dist davidhirtz/yii2-lazysizes "*"

Usage

Once the extension is installed, simply use it in your views. The following example shows you how to add an lazysizes powered image tag., (*3)

\davidhirtz\yii2\lazysizes\AssetBundle::register($this);
echo \davidhirtz\yii2\lazysizes\Html::lazyImg($srcset, $options);

Upgrade from V1

Important: AssetBundle is no longer registered by calling Html::lazyImg()., (*4)

The Versions

26/07 2018

dev-master

9999999-dev

High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.

  Sources   Download

MIT

The Requires

 

by David Hirtz

yii2 extension lazysizes