From a220c81eb9d65b514fcf3090a0aae75dadf5d371 Mon Sep 17 00:00:00 2001 From: jeresig Date: Fri, 24 Sep 2010 10:06:36 -0400 Subject: [PATCH] Increase the speed of the single setTimeout calls for the ready event. --- src/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.js b/src/core.js index 2c2b7466..6c6d0060 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