github verlok/vanilla-lazyload 12.3.0
Version 12.3

latest releases: 19.1.3, 19.1.2, 19.1.1...
5 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.