Created
February 2, 2011 22:28
-
-
Save dmethvin/808592 to your computer and use it in GitHub Desktop.
holdReady
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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