Skip to content

Instantly share code, notes, and snippets.

@radavis
Forked from carlos-sanchez/document-ready.js
Last active August 29, 2015 14:25
Show Gist options
  • Save radavis/f012053e254116f070f5 to your computer and use it in GitHub Desktop.
Save radavis/f012053e254116f070f5 to your computer and use it in GitHub Desktop.
$( document ).ready(function() {
//whatever
});
// Shorthand for $( document ).ready()
$(function() {
//whatever
});
//window load
$(window).load(function() {
// executes when complete page is fully loaded, including all frames, objects and images
alert("window is loaded");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment