Skip to content

Instantly share code, notes, and snippets.

View kottenator's full-sized avatar

Rostyslav Bryzgunov kottenator

  • Facebook
  • Seattle, WA
View GitHub Profile
@kottenator
kottenator / gist:960033
Created May 6, 2011 23:58 — forked from paulirish/README.md
imagesLoaded() jquery plugin
/**
* Execute a callback when all images have loaded.
* needed because .load() doesn't work on cached images
*
* Usage:
* $('img.photo').imagesLoaded(myFunction)
* -> myFunction() { this == [jQuery collection of 'img'] }
*
* $('img.photo').imagesLoaded(myFunction, myContext)
* -> myFunction() { this == myContext }