Skip to content

Instantly share code, notes, and snippets.

@sgentle
Created April 1, 2011 09:32
Show Gist options
  • Save sgentle/897947 to your computer and use it in GitHub Desktop.
Save sgentle/897947 to your computer and use it in GitHub Desktop.
preloads = $('img.preload')
preloads.load(_.barrier(preloads.length, function() { alert("all images loaded!"); }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment