什么是“连接"?并在“网络"标签中的"Chrome开发者工具"中显示“为什么",为什么它只在某些网站上显示? [英] What does "connecting" mean in Chrome Developer Tools in the Network Tab, and why does it show up only for some sites?

查看:101
本文介绍了什么是“连接"?并在“网络"标签中的"Chrome开发者工具"中显示“为什么",为什么它只在某些网站上显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图在网上寻找一种解释,但似乎找不到. 如果您在Chrome上转到youtube.com之类的网站,并将鼠标悬停在与文件名"http://www.youtube.com/"相对应的蓝色栏中,则会看到四种不同的内容:

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:

阻止

-发送

-等待中

-接收

在网络"标签中查看其他网站的页面时,我看到了

While viewing a different site's page in the network tab, I see

-DNS查找

-连接

-发送

-等待中

-接收

尽管页面是如此简单,但是所有这些事情都需要花费很长时间.是什么使我的服务器为页面加载显示不同的统计键,我该如何优化?一般来说,在哪里可以找到有关网络工具的更全面的信息?

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?

推荐答案

DNS查找通常是在您首次连接到站点并且浏览器没有其IP地址时发生.在这种情况下,您可以在页面的左下角看到一个带有文字"Resolve www.blablabla.com ..."的小工具提示. 如果DNS服务器运行缓慢,则可能会很长.

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.

连接是指浏览器已发送数据包以建立连接并等待答案的时间. 如果Web服务器运行缓慢,可能会很长.

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.

阻塞是指浏览器必须请求资源但已从同一服务器请求了20个其他资源的时间.在这种情况下,浏览器会将这些请求放入队列.如果服务器运行缓慢,可能会发生这种情况.

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.

这篇关于什么是“连接"?并在“网络"标签中的"Chrome开发者工具"中显示“为什么",为什么它只在某些网站上显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆