What does “connecting” mean in Chrome Developer Tools in the Network Tab, and why does it show up only for some sites?

前端 未结 1 1409
误落风尘
误落风尘 2021-02-08 23:45

I\'ve been trying to look for an explanation online but I can\'t seem to find one. If you go to a site like youtube.com on Chrome and hover over the blue bar corresponding to th

1条回答
  •  别跟我提以往
    2021-02-09 00:12

    DNS lookup usually happens when you connect to the site the first time and your browser doesn't have its ip address. In this case you can see a small tooltip at the down left corner of the page with text "Resolve www.blablabla.com...." It could be pretty long if the DNS server is slow.

    Connecting is the time when the browser has sent a packet for establishing the connection and is waiting for an answer. It can be long if the web server is slow.

    Blocking is the time when the browser has to request a resource but 20 other resources have been requested from the same server. In this case the browser will put these request into a queue. It can happens if the server is slow.

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