Version 15.0
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-bgattribute, now manages theloadanderrorevents, so they are applied the classes defined in theclass_loading/class_loaded/class_error, and the callbacks defined incallback_loading/callback_loaded/callback_error. - Lazy loading of multiple background images is still possible via the
data-bg-multiattribute. In this case, theloadanderrorevents are not managed. Theclass_appliedandcallback_appliedcan 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!