Skip to content

Instantly share code, notes, and snippets.

@tammersaleh
Created November 17, 2009 19:50
Show Gist options
  • Save tammersaleh/237210 to your computer and use it in GitHub Desktop.
Save tammersaleh/237210 to your computer and use it in GitHub Desktop.
jQuery.extend({
isReady: false,
readyList: [],
// Handle when the DOM is ready
ready: function() {
// Make sure that the DOM is not already loaded
if ( !jQuery.isReady ) {
// Remember that the DOM is ready
jQuery.isReady = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment