Skip to content

Instantly share code, notes, and snippets.

@ksykulev
ksykulev / imagesLoaded.js
Created August 25, 2011 05:33 — forked from paulirish/README.md
imagesLoaded() jquery plugin - adding unbind for load event
// $('img.photo',this).imagesLoaded(myFunction)
// execute a callback when all images have loaded.
// needed because .load() doesn't work on cached images
// mit license. paul irish. 2010.
// webkit fix from Oren Solomianik. thx!
// callback function is passed the last image to load
// as an argument, and the collection as `this`