Merge branch 'master' of github.com:jquery/jquery
This commit is contained in:
commit
6dfdb14753
|
@ -437,7 +437,8 @@ jQuery.extend({
|
||||||
// Catch cases where $(document).ready() is called after the
|
// Catch cases where $(document).ready() is called after the
|
||||||
// browser event has already occurred.
|
// browser event has already occurred.
|
||||||
if ( document.readyState === "complete" ) {
|
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
|
// Mozilla, Opera and webkit nightlies currently support this event
|
||||||
|
|
Loading…
Reference in a new issue