I would like to set up a lean and mean image gallery, with thumbnails displayed inline. I’d like them not to windowshade in while loading, I’d like them to simply pop up or, if there’s a way to detect their completion, use a jQuery effect like a quick fadeIn().
I imagine a line of code like:
$(".thumb-image").whenLoaded(fadeIn(500));
But is there such an event? What’s it called?
Use the
loadevent:jQuery:
Or Vanilla JavaScript:
The
loadevent fires after all images, DOM, external resources, frames, etc have loaded.