Skip to content

Instantly share code, notes, and snippets.

@richerimage
Created December 21, 2014 11:43
Show Gist options
  • Select an option

  • Save richerimage/f8b0bcd32145d9045c59 to your computer and use it in GitHub Desktop.

Select an option

Save richerimage/f8b0bcd32145d9045c59 to your computer and use it in GitHub Desktop.
Use the following code instead to execute code only when everything on the page has loaded, including images.
$(window).bind("load", function() {
//YOUR CODE
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment