finds.dev← search

// the find

desandro/imagesloaded

★ 8,862 · JavaScript · MIT · updated Feb 2022

:camera: JavaScript is all like "You images done yet or what?"

imagesLoaded is a small JavaScript library that tells you when all images in a container have finished loading (or failed). It's for anyone doing layout after images load — masonry grids, carousels, anything that needs real image dimensions before it can position elements.

Works on both `<img>` elements and CSS background images, which most native solutions miss. The event model distinguishes between 'all loaded', 'all done without errors', and 'at least one broken' — you can actually handle failures differently from successes. No dependencies for vanilla JS use; jQuery is optional and injected explicitly via makeJQueryPlugin rather than assumed. Tiny single-file implementation with no build step required if you just drop in the pkgd build.

Last commit was February 2022, and the project shows no signs of active maintenance — open issues and PRs are piling up with no responses. No Promise-based API; you're stuck with callbacks or a jQuery Deferred, which feels dated in 2024 when native Promises are universal. The browser support docs still call out IE in the v4 note, suggesting the target audience is narrowing. For modern frameworks (React, Vue, Svelte), you'd likely reach for IntersectionObserver or a framework-native image component before installing this.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →