vanilla-lazyload
Advanced tools
Changelog
15.1.1
Fixed a bug when loading lazy background images on HiDPI screens, data-bg-hidpi
was mandatory, not it fallbacks to data-bg
. #430
Changelog
15.1.0
Lazy background images just gained support for hiDPI ("retina") screens!
Place your standard resolution images in the data-bg
attribute and your hiDPI images in data-bg-hidpi
.
Same for data-bg-multi
and data-bg-multi-hidpi
.
Changelog
15.0.0
Lazy background images gained loaded/error classes and callbacks! 🎉
Breaking changes impacting lazy background images! ⚠ See UPGRADE.md to understand if you are impacted and how to upgrade from previous versions.
data-bg
attribute, now manages the load
and error
events, so they are applied the classes defined in the class_loading
/class_loaded
/class_error
, and the callbacks defined in callback_loading
/callback_loaded
/callback_error
.data-bg-multi
attribute. In this case, the load
and error
events are not managed. The class_applied
and callback_applied
can be used to understand when the multiple background was applied to the element.Love this project? 😍 Buy me a coffee!