What the emptiness mean in devtools timings?

前端 未结 1 1567
北恋
北恋 2020-12-11 06:32

Check this image with timings for a web page fetch.

\"enter

There is gray at

相关标签:
1条回答
  • 2020-12-11 06:54

    I've written up an extensive explanation in the chromium bug for it: Issue 476749: DevTools: [network] explain empty bars preceeding request..

    Here's the gist, empty bar time is usually one of a few things

    • The request was postponed because it's considered lower priority than scripts/styles (e.g. images)
    • The request was put on hold while we wait for an available TCP socket that's about to free up
    • The request was put on hold because the browser only does 6 connections per host.
    • Time spent making disk cache entries (typically very quick)

    You can right click the headers to turn on "Connection ID" to see if different requests are sharing the same TCP connection. WebPageTest's connection view can also help with that.

    But from the screenshot above, it appears the preload-scanner identified many scripts, styles, and images necessary for the page. It quickly started the styles and scripts and queued up images to be done later. They were delayed because of the 6 connections per host rule.

    0 讨论(0)
提交回复
热议问题