From: jeresig Date: Fri, 24 Sep 2010 14:06:36 +0000 (-0400) Subject: Increase the speed of the single setTimeout calls for the ready event. X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;ds=sidebyside;h=a220c81eb9d65b514fcf3090a0aae75dadf5d371;p=jquery.git Increase the speed of the single setTimeout calls for the ready event. --- diff --git a/src/core.js b/src/core.js index 2c2b746..6c6d006 100644 --- a/src/core.js +++ b/src/core.js @@ -397,7 +397,7 @@ jQuery.extend({ if ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) { // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). if ( !document.body ) { - return setTimeout( jQuery.ready, 13 ); + return setTimeout( jQuery.ready, 1 ); } // Remember that the DOM is ready @@ -438,7 +438,7 @@ jQuery.extend({ // browser event has already occurred. if ( document.readyState === "complete" ) { // Handle it asynchronously to allow scripts the opportunity to delay ready - return setTimeout( jQuery.ready, 13 ); + return setTimeout( jQuery.ready, 1 ); } // Mozilla, Opera and webkit nightlies currently support this event