yall.js is a featured-packed lazy loading script for <img>
, <picture>
, <video>
and <iframe>
elements. It works in all modern browsers including IE11. It uses Intersection Observer where available, but falls back to scroll
, touchmove
, resize
, and orientationchange
events where necessary. It can also monitor the DOM for changes using Mutation Observer to lazy load image elements that have been appended to the DOM after initial page render, which may be desirable for single page applications. It can also (optionally) optimize use of browser idle time using requestIdleCallback
. To optimize decoding of <img>
lazy loading for simple src
and srcset
use cases, yall.js uses Image.decode
where available to decode images asynchronously before adding them to the DOM.
The post Yall.js : Fast, Flexible and Tiny Image Lazy Loader appeared first on Best jQuery.
by Admin via Best jQuery
No comments:
Post a Comment