imagesloaded
Homepage
https://github.com/desandro/imagesloaded
What is it?
A JavaScript library for reliably detecting when an image file has been loaded by a user's browser.
Why did we choose it?
Native JavaScript methods for detecting image loads are unreliable; sometimes they will report an image as not loading when it has loaded, making scripts and interfaces that need the image to load to display properly difficult to use. This library is much more reliable for this purpose.
What do we use it for?
Improving the display of galleries, where displaying various elements before the image itself has loaded can lead to a very messy-looking gallery appearance when the page is still loading.