Firebug的“网络"标签上的“等待响应"消息到底是什么? [英] What exactly is the 'Waiting for response' msg on Firebug's Net tab?

查看:175
本文介绍了Firebug的“网络"标签上的“等待响应"消息到底是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从屏幕快照中可以看到,sou大部分时间都在等待服务器响应(紫色区域).

As sou can see from the screenshot most of the time spent is waiting for a server response (thats the purple coloured area).

该服务器响应时间到底是多少?服务器太慢了吗?我的连接太慢了吗?服务器不能一次处理很多信息(我那里有很多文件,我知道我会将它们合并成更少的文件)?我该怎么做才能最大程度地减少等待时间?

What exactly is that server response time? Is the server too slow? Is my connection too slow? Can't the server process much information at once (I've got many files there, I know I'll combine them to fewer)? What do I have to do to minimise that waiting time?

PS.所有数据都在同一台服务器上,但是我使用的是子域,以便浏览器可以一次处理更多文件.

PS. all the data are on the same server but I'm using subdomains so that the browser can process more files at once.

推荐答案

本文非常了解firebug的功能:

This article is quite nice about features of firebug : Introduction to Firebug: Net Panel (especially the timeline section)... But it doesn't say much about what "waiting for response" exactly means :-(

仍然,时间轴是(引用):

  • DNS查找-DNS解析时间
  • 连接-创建TCP连接所需的时间
  • 排队-在浏览器队列中等待网络连接所花费的时间
  • 等待响应-等待服务器的响应
  • 接收数据-从服务器读取整个响应所需的时间(和/或从缓存中读取所需的时间).
  • DomContentLoaded事件-触发DomContentLoad事件的时间(自请求开始,如果事件之后已开始,则为负)
  • 加载事件-触发页面加载事件的时间(自请求开始,如果事件之后已启动请求,则为负)
  • DNS Lookup - DNS resolution time
  • Connection - elapsed time required to create a TCP connection
  • Queuing - elapsed time spent in a browser queue waiting for a network connection
  • Waiting For Response - waiting for a response from the server
  • Receiving Data - elapsed time required to read entire response from the server (and/or time required to read from cache).
  • DomContentLoaded event - time when DomContentLoad event was fired (since the beginning of the request, can be negative if the request has been started after the event)
  • load event - time when page load event was fired (since the beginning of the request, can be negative if the request has been started after the event)


因此,我猜测等待响应"时间段是浏览器已将请求发送到服务器并且尚未收到任何响应的时间:它正在等待"某些内容开始到达:


So, I'm guessing that the "waiting for response" period is the time during which the browser has sent the request to the server, and has not received any response yet : it is "waiting" for some content beginning to arrive :

  • 浏览器不再等待网络连接:请求已发送
  • 并且浏览器尚未从服务器读取响应.


如果服务器在开始将整个页面发送到浏览器之前生成了整个页面,我想等待响应"的时间将对应于:


In the case of a server generating the whole page before beginning sending it to the browser, I suppose the "waiting for response" time would be correspond to :

  • 请求从浏览器传输到服务器的时间
  • 加上服务器处理请求的时间(即生成整个页面的时间)
  • 从服务器到浏览器传输数据的第一个字节的时间.


希望这会有所帮助:-)


Hope this helps :-)

这篇关于Firebug的“网络"标签上的“等待响应"消息到底是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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