vanilla-lazyload
Advanced tools
Changelog
11.0.1
Squashed a nasty bug that occurred on IE 11 and Safari when the IntersectionObserver
polyfill wasn't loaded before LazyLoad.
Changelog
11.0.0
lazyload.es2015.js
to lazyload.esm.js
to_webp
option (see issue #288)callback_reveal
instead._setObserver
, _onIntersection
etc. are now hidden from the outside.auto_unobserve
boolean option, see API.loadAll()
didn't unobserve elements.Callbacks updated:
callback_enter
. This callback is now called whenever an element enters the viewport, even when load_delay
is set. In previous versions, this callback was delayed until an element started loading if a load_delay
was set. Note that this is a possible breaking change, which you can fix using callback_reveal
instead.callback_loaded
is the new name of callback_load
.callback_exit
. This callback is called whenever an element exits the viewport, even if a load_delay
is set.callback_reveal
. This callback is called just after an element starts loading.callback_set
. This callback still works*, but will be removed in the next major* it didn't work from versions 11.0.0 to 11.0.5, it still works from 11.0.6.
Changelog
10.20.1
Fixed a bug for which LazyLoad didn't copy the data-sizes
attribute value to sizes
in source
tags inside picture
. See #307.
Changelog
10.20.0
Improved WebP detection to work correctly on Firefox too, see #298.
Thanks to @ipernet for contributing.
Changelog
10.19.1
Thanks to @AlexCSR and @muturgan for contributing.
Changelog
8.17.0
callback_finish
callback.demos/print.html
to demo how to print lazy images.Changelog
10.19.0
callback_finish
callback.demos/print.html
to demo how to print lazy images.Changelog
8.16.0
Added the ability to have multiple background images, through the new data_bg
option.
Changelog
10.18.0
Added the ability to have multiple background images, through the new data_bg
option.