Double Lazy Load, or just DLL.js, can be utilized in deferring the load of a website's images to the moment when they become visible on page, or when the user presses a button, hovers an element, or executes any other custom action.
By default only images with a custom data-src attribute will be subject to a lazy-load operation.
The library works with images embedded in the page's content and with background images as well, and can also be used to lazy-load images inside a given element, using a parent-child model.
Retina support is included, and callback functions are also available, allowing developers to execute other blocks of code when the lazy load even is triggered or when a collection of elements is loaded.
DLL.js comes with a few basic examples to show developers how it can be implemented and customized.
What is new in this release:
- Make sure lazy loading proper order: the target element with data-src and children fires callback when last image loaded, and the last one is the element.
Requirements:
- JavaScript enabled on client side
Comments not found