2017 © Pedro PelĆ”ez
 

contao-module contao-lazy-images

image

derhaeuptling/contao-lazy-images

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 16 Versions
  • 29 % Grown

The README.md

No Maintenance Intended, (*1)

DEPRECATED

This plugin was made to do two things: 1. lazy load images 2. prevent browser reflow whenever image dimensions become available, (*2)

Both are now becoming solved by native browser support ... at least partially for now., (*3)

  1. native lazy loading, (*4)

    The loading attribute <img loading="lazy"> brings native lazy loading to the browser.
    As of writing this, it is supported by Google Chrome & Microsoft Edge.
    more info:
    caniuse.com
    Firefox has plans for v75
    Safari is working on it too, (*5)

  2. native image placeholder, (*6)

    Img with and height attributes still work perfectly to paint a placeholder into which the image will be loaded.
    But whenever we added responsive css to our images, like by adding style="width: 100%; height: auto;", the browser where unable to paint the placeholder., (*7)

    But in the meantime, beginning with Firefox, the broswers now utilize the with and height img attributes to calculate an aspect ratio. With this aspect ratio modern browsers can now paint a placeholder.
    (actually this is the same, what this plugin does and the intrinsic ratio trick did back in 2009.), (*8)

    Source: https://www.youtube.com/watch?v=4-d_SoCHeWE, (*9)

Thanks for having used this Plugin!, (*10)

contao-lazy-images

Contao Plugin for lazyloading images with LazySizes.js without the disturbing reflow of the website, whenever an image is loaded., (*11)

Lazyloading images improves the website performance. Images no longer block the window.onload event.
Visible images in the viewport are loaded first and therefore faster., (*12)

To prevent the website reflow whenever an image is loaded a the configurable placeholder protects the place the image would take., (*13)

Several options are available in the generic contao settings: * Transparent placeholder br/ a tiny transparent data:image placeholder with the correct aspect ratio is inlined. * Thumbnail placeholderbr/ a thumbnail data:image placeholder with the correct aspect ratio is inlined. * Intrinsic ratio (no placeholder needed) br/ An intrinsic ratio container is created to preserve the correct dimenions for the loading image. br/ This is the fastest and the most correct approach. As intrinsic ratios relay on CSS it may conflict with your theme. * Intrinsic ratio + thumbnail placeholder, (*14)

The sizes of the placeholders and thumbnails can be adjusted., (*15)

Hint:the picture syntax with its sources is supported since 3.0.0, but only work with thumbails, not with instrinsic ratios., (*16)

Why preventing the reflow

Alt text, (*17)

While the reflow is ugly and consumes computing power it also causes issues with JavaScript layout solutions., (*18)

JavaScript libs like Masonry or GreenSock position / layout elements respectively their dimensions.
If anything is changing those dimensions afterwards, like an image that got (lazy)loaded, the calculated layout breaks., (*19)

Using inline placeholders prevent those issues upfront., (*20)

LazySizes

LazySizes is a 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., (*21)

The Versions

29/07 2018

dev-screenshot

dev-screenshot

  Sources   Download

18/04 2018

dev-master

9999999-dev

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

18/04 2018

3.0.3

3.0.3.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

10/04 2018

3.0.2

3.0.2.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

03/04 2018

3.0.1

3.0.1.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

20/10 2017

dev-dev

dev-dev

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

20/10 2017

3.0.0

3.0.0.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

14/06 2017

2.0.1

2.0.1.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

13/04 2017

2.0.0

2.0.0.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

02/02 2017

1.0.6

1.0.6.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

30/01 2017

1.0.5

1.0.5.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

31/10 2016

1.0.4

1.0.4.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

19/10 2016

1.0.3

1.0.3.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

04/10 2016

1.0.2

1.0.2.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

29/08 2016

1.0.1

1.0.1.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao

25/08 2016

1.0.0

1.0.0.0

Lazy Images delays loading of images in long web pages for Contao Open Source CMS.

  Sources   Download

LGPL-3.0+

The Requires

 

images contao