github verlok/vanilla-lazyload 15.0.0
Version 15.0

latest releases: 19.1.3, 19.1.2, 19.1.1...
4 years ago

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.

  • Lazy loading of one background image using the 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.
  • Lazy loading of multiple background images is still possible via the 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.
  • Updated background images demos:
    • background-images.html -> single background images
    • background-images-multi.html -> multiple background images
  • Added UPGRADE.md, a guide on how to upgrade from previous versions (from version 12 up)

Love this project? 😍 Buy me a coffee!

Don't miss a new vanilla-lazyload release

NewReleases is sending notifications on new releases.