diff --git a/src/core.js b/src/core.js index f1feb702f..3fcc9e46c 100644 --- a/src/core.js +++ b/src/core.js @@ -866,7 +866,7 @@ jQuery.ready.promise = function( object ) { window.addEventListener( "load", jQuery.ready, false ); // If IE event model is used - } else if ( document.attachEvent ) { + } else { // ensure firing before onload, // maybe late but safe also for iframes document.attachEvent( "onreadystatechange", DOMContentLoaded );