github verlok/vanilla-lazyload 16.0.0
Version 16.0

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

16.0.0

Functional changes:

  • Removed call to deprecated callback_reveal
  • Removed deprecated instance load() method in favor of the static LazyLoad.load() method
  • Replaced auto_unobserve with unobserve_completed, still defaulting to true
  • 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 static LazyLoad.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 the toLoadCount property
  • Refactored counters functions in a new lazyload.counters file

Love this project? 😍 Buy me a coffee!

Don't miss a new vanilla-lazyload release

NewReleases is sending notifications on new releases.