“连接”是什么意思? Chrome 开发者工具中“网络”选项卡中的意思是什么,为什么它只在某些网站上显示?
我一直试图在网上寻找解释,但似乎找不到。 如果您在 Chrome 上访问像 youtube.com 这样的网站,并将鼠标悬停在与文件名“http://www.youtube.com/”相对应的蓝色条上,您会看到四种不同的内容:
- 阻止
- 发送
- 等待
-接收
在网络选项卡中查看不同站点的页面时,我看到
-DNS 查找
-连接
-发送
-等待
-接收
尽管页面如此简单,但完成所有这些操作需要很长时间。是什么让我的服务器为页面加载显示不同的统计键,我可以做些什么来优化?一般来说,在哪里可以找到有关网络工具的更全面的信息?
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 the file name "http://www.youtube.com/", you'll see four different things:
-Blocking
-Sending
-Waiting
-Receiving
While viewing a different site's page in the network tab, I see
-DNS Lookup
-Connecting
-Sending
-Waiting
-Receiving
It takes a long time to do all these things, even though the page is so simple. What makes my server display different statistical keys for a page load, and what can I do to optimize? In general, where can I find more comprehensive info on network tool?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
DNS 查找通常发生在您第一次连接到该站点并且您的浏览器没有其 IP 地址时。在这种情况下,您可以在页面左下角看到一个小工具提示,其中包含文本“解析 www.blablabla.com....”
如果 DNS 服务器速度很慢,则可能会很长。
连接中是浏览器发送建立连接的数据包并等待答复的时间。
如果网络服务器很慢,它可能会很长。
阻塞是指浏览器必须请求某个资源,但同一服务器已经请求了 20 个其他资源的情况。在这种情况下,浏览器会将这些请求放入队列中。如果服务器速度慢,则可能会发生这种情况。
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.