Lazy load responsive images and HTML
New:
Fixed:
Brand new version! 🎉
New:
Changed:
Removed:
Additional image visibility check for browsers that support IntersectionObserver. Fixes non-displaying images in Chrome.
Double image loading fix.
Added support for elements in parents with scrollbars.
Added data-onlazyload
attribute.
Removed responsivelyLazy.hasChange
property.
Removed responsivelyLazy.hasWebPSupport
property.
Updated element visibility detection using IntersectionObserver (only in Chrome for now). This improves performance and reliability. Some big fixes.
Unknown height images were not visible on browsers that do not support srcset
. This release fixes it.
The default image can be specified by dropping the width value in the data-srcset
attribute.
If you write data-srcset="... images/1500.jpg 1500w, images/2000.jpg"
the default image will be images/2000.jpg
instead of the one in the src
attribute.
WebP support
First version