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_unobserve
withunobserve_completed
, still defaulting totrue
- Introduced a new
unobserve_entered
option (useful to execute lazy functions once) - Created a demo called
lazy_functions.html
to 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_delay
option since there's no more use for it - Removed the
load_delay
related 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_exit
with less increase/decrease of thetoLoadCount
property - Refactored counters functions in a new
lazyload.counters
file
Love this project? 😍 Buy me a coffee!