From: jeresig Date: Thu, 23 Sep 2010 16:09:49 +0000 (-0400) Subject: Merge branch 'master' of github.com:jquery/jquery X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=6dfdb14753c66cfd38f8445bd6119ef4a1274d5e;hp=894bd02a06fc10cfa9cb3ebd1a17d8ede533b919;p=jquery.git Merge branch 'master' of github.com:jquery/jquery --- diff --git a/src/core.js b/src/core.js index 158f479..2c2b746 100644 --- a/src/core.js +++ b/src/core.js @@ -437,7 +437,8 @@ jQuery.extend({ // Catch cases where $(document).ready() is called after the // browser event has already occurred. if ( document.readyState === "complete" ) { - return jQuery.ready(); + // Handle it asynchronously to allow scripts the opportunity to delay ready + return setTimeout( jQuery.ready, 13 ); } // Mozilla, Opera and webkit nightlies currently support this event