Skip to content

Instantly share code, notes, and snippets.

@dmethvin
Created February 2, 2011 22:28
Show Gist options
  • Save dmethvin/808592 to your computer and use it in GitHub Desktop.
Save dmethvin/808592 to your computer and use it in GitHub Desktop.
holdReady
// jQuery.holdReady (true) --> don't fire ready until i say so
// jQuery.holdReady (false) --> ok go ahead (assuming nobody else delayed)
jQuery.holdReady = function( hold ) {
if ( hold ) {
jQuery.readyWait++;
} else {
jQuery.ready( true );
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment