colorsand
V2EX  ›  浏览器

chrome dvetools 中“network”状态栏的几个时间分别代表什么?

  •  
  •   colorsand · Aug 22, 2015 · 6319 views
    This topic created in 4097 days ago, the information mentioned may be changed or developed.
    4 replies  •  2015-08-22 15:54:25 +08:00
    IamJ
    IamJ
    Aug 22, 2015
    1
    后两个对应 document 的 DOMContentLoaded 和 window 的 onLoad 事件触发时间, Finish 应该是页面加载完的时间
    colorsand
    colorsand
    OP
    Aug 22, 2015
    2
    请问 @IamJ , "DOMContentLoaded 和 window 的 onLoad"这两个有什么具体的区别?
    SoloCompany
    SoloCompany
    Aug 22, 2015
    3
    <html>
    <script src=1.js></script>
    <script src=2.js></script>
    <img src=1.jpg />
    <script src=3.js></script>
    </html>

    在 3.js 执行(不包括异步部分)后,后面的 html 才能允许渲染, DOMContentLoaded 应该是指 </html> 最后一个字节都被渲染出来后的时间 (onDocumentChange 状态变成 ready )。而 onLoad 的触发除了 dom 还包括所有依赖元素,上例中就是要等 1.jpg 加载完成(或出错)后才能触发
    colorsand
    colorsand
    OP
    Aug 22, 2015
    4
    还是不太明白
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1273 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:21 · PVG 01:21 · LAX 09:21 · JFK 12:21
    ♥ Do have faith in what you're doing.