imagesloaded is a JavaScript image loading library used to detect when images and background images have finished loading or failed within a web page. It functions as a frontend asset loader and DOM image event monitor that synchronizes user interface updates with the actual completion of image downloads in the browser.
The library provides monitoring systems to track the loading status of individual images, group containers, and background assets. It coordinates the appearance of a web page to ensure content is not displayed until required assets are ready, which helps manage the loading sequence of visual assets and prevent layout shifts.
Capabilities include triggering callbacks based on total success, failure, or incremental progress. The tool supports a variety of resolution methods, including event listeners, polling for background images, and promises for asynchronous state resolution.