github verlok/vanilla-lazyload 12.3.0
Version 12.3

latest releases: 19.0.0, 18.0.0, 17.9.0...
4 years ago

12.3.0

Callbacks now pass more arguments.

callback_enter, callback_exit now pass:

  1. the DOM element that entered / exited the viewport
  2. the IntersectionObserverEntry that triggered the enter/exit event
  3. the LazyLoad instance

callback_load, callback_error, callback_reveal now pass:

  1. the DOM element that entered / exited the viewport
  2. the LazyLoad instance

callback_finish now passes:

  1. the LazyLoad instance

The README file has been updated accordingly.

Don't miss a new vanilla-lazyload release

NewReleases is sending notifications on new releases.