浏览器加载html dom 的顺序
• HTML is parsed.
• External scripts/style sheets are loaded.
• Scripts are executed as they are parsed in the document.
• HTML DOM is fully constructed.
• Images and external content are loaded.
• The page is finished loading.