Version 16.0
16.0.0
Functional changes:
- Removed call to deprecated
callback_reveal - Removed deprecated instance
load()method in favor of the staticLazyLoad.load()method - Replaced
auto_unobservewithunobserve_completed, still defaulting totrue - Introduced a new
unobserve_enteredoption (useful to execute lazy functions once) - Created a demo called
lazy_functions.htmlto show how to execute functions as elements enter the viewport - Wrote a new recipe to facilitate the lazy execution of scripts/functions
- Renamed instance method
resetElementStatus()to the staticLazyLoad.resetStatus() - Removed the
load_delayoption since there's no more use for it - Removed the
load_delayrelated demos
See UPGRADE.md to understand if you are impacted by any breaking change and how to upgrade from previous versions.
Internal changes:
- Simplified management of the
cancel_on_exitwith less increase/decrease of thetoLoadCountproperty - Refactored counters functions in a new
lazyload.countersfile
Love this project? 😍 Buy me a coffee!