Skip to content

Instantly share code, notes, and snippets.

@rjungemann
Created September 29, 2011 18:02
Show Gist options
  • Save rjungemann/1251440 to your computer and use it in GitHub Desktop.
Save rjungemann/1251440 to your computer and use it in GitHub Desktop.
Make sure an image has loaded using JQuery
$.imageComplete = (callback) ->
$(this).one('load', callback).each -> if this.complete then $(this).load()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment