在jQuery ready事件逻辑中:
// Catch cases where $(document).ready() is called after the
// browser event has already occurred.
if ( document.readyState === "complete" ) {
// Handle it asynchronously to allow scripts the opportunity to delay ready
return setTimeout( jQuery.ready, 1 );
}
Run Code Online (Sandbox Code Playgroud)
你能解释一下这个评论:"异步处理它,让脚本有机会延迟准备".
我不明白什么脚本和为什么要推迟准备?