2.0.0 release!
This is a rewrite of yall.js. Improvements/changes include:
<iframe>
elements can now be lazy loaded.requestIdleCallback
can be optionally used to lazy load elements while optimizing browser idle time.- Images can be lazy loaded after they're added to the DOM by specifying the
observeChanges
option. - Simple
<img>
lazy loading use cases now benefit from async decoding usingImage.decode()
. - Unlike version 1, a number of configuration options now exist that allow you to change behaviors to your liking.
File an issue for any bugs you encounter. Testing was extensive, but bugs are always possible!
Happy lazy loading!