Html页面Javascript初始化页面的dom的建立顺序。

Html页面Javascript初始化页面的dom的建立顺序。 html

What is the difference between window.onload and document.ready ? html5

The ready event occurs after the HTML document has been loaded, while the onload event occurs later, when all content (e.g. images) also has been loaded. dom

The onload event is a standard event in the DOM, while the ready event is specific to jQuery. The purpose of the ready event is that it should occur as early as possible after the document has loaded, so that code that adds funcionality to the elements in the page doesn't have to wait for all content to load. spa

具体就太长了能够参考 code

http://www.w3.org/TR/2011/WD-html5-20110405/parsing.html htm

http://www.w3.org/TR/2011/WD-html5-20110405/tokenization.html token

相关文章
相关标签/搜索