firefox firbug 的“阻挡” blocking
为什么80%的码农都做不了架构师?>>>
用firebug分析网页,发现连接处有很多阻挡,而且时间很长,在firebug的官方wiki中找到了 “阻挡” 的解释(内容来自http://getfirebug.com/wiki/index.php/Main_Page): Request Timeline Every request-response round trip is shown as horizontal bar in the Timeline and is composed of several phases, represented by different colors. Hovering a Request Timeline offers more detailed information about the timings of the different phases. Value Display Description
Value | Display | Description |
Blocking | Time spent in a browser queue waiting for a network connection (formerly called Queueing) For SSL connections this includes the SSL Handshake and the OCSP validation step. | |
DNS Lookup | DNS resolution time | |
Connecting | Elapsed time required to create a TCP connection | |
Sending | Sending request headers | |
Waiting | Waiting for a response from the server | |
Receiving | / (from cache) | Time required to read the entire response from the server (and/or time required to read from cache) |
'DOMContentLoaded' (event) | (blue line) | Point in time when DOMContentLoaded event was fired (since the beginning of the request, can be negative if the request has been started after the event) |
'load' (event) | (red line) | Point in time when the page load event was fired (since the beginning of the request, can be negative if the request has been started after the event) |
'MozAfterPaint' (event) | (green line) | Point in time when a MozAfterPaint event was fired (since the beginning of the request, can be negative if the request has been started after the event) |
Time stamp | (olive line) | Time stamp created via console.timeStamp() |
第一个 Blocking 翻译成中文解释为: 所花费的时间在浏览器中队列(前称为排队等待网络连接) SSL连接的,这包括SSL握手和OCSP验证步骤。 即队列等待时间。 浏览器的队列等待时间与浏览器的并发数有关,常见浏览器的并发数如下: 浏览器 HTTP 1.1 HTTP 1.0 IE 6,7 2 4 IE 8 6 6 Firefox 2 2 8 Firefox 3 6 6 Safari 3, 4 4 4 Chrome 1,2 6 ? Chrome 3 4 4 Opera 9.63,10.00alpha 4 4 例如Firefox3 对于一个主机(同一主机域名),一次性只能处理6个请求,而多余的请求则处于队列当中。 为了提高反问速度可以给网站家更多的域名,如京东就是采用更多的域名来提高并发 引用:http://hi.baidu.com/thinkinginlamp/blog/item/e6409313f6ae1c866438db4c.html 浏览器并发连接数 2008年10月10日 星期五 下午 9:41 作者:老王 这是个老话题了,先总结一下HTTP1.1下主流浏览器在单个主机下的并发连接数: IE7 2 IE8 6 Firefox2 2 Firefox3 6 看上去巧合的是:老版本的IE和Firefox都使用较低的单个主机并发连接数(2),而新版本的IE和Firefox都使用较高的单个主机并发连接数(6)。说起来老版本的IE和Firefox之所以采用较低的单个主机并发连接数是有道理的,在RFC2616里明确要求了单个主机并发连接数的数目: Clients that use persistent connections SHOULD limit the number of simultaneous connections that they maintain to a given server. A single-user client SHOULD NOT maintain more than 2 connections with any server or proxy. A proxy SHOULD use up to 2*N connections to another server or proxy, where N is the number of simultaneously active users. These guidelines are intended to improve HTTP response times and avoid congestion. 不过标准总会落后于现实。在当今的网络环境里再使用较低的单个主机并发连接数已经越来越显得不合时宜了,所以说新版本的IE和Firefox才会不约而同的采用较高的单个主机并发连接数。 不过很多时候我们为了效率还想得到更高的并发连接数,比如说我们总会看到一些大网站采用独立域名或者二级域名来设置专门的图片服务器,其实有一部分原因就是为了增加并发连接数。至于使用独立域名还是二级域名的差别在于Cookie的影响,当使用和主站根域名相同的二级域名时,请求的同时也会捎带着传递主站根域名的Cookie,而使用和主站根域名不同的独立域名时,则不会受主站根域名Cookie的影响,所以带宽占用会更小一些。 不过也不是说并发连接数越大越好,假如新版浏览器得到普及,即使你的网站的平均流量还维持在和以前一样的水平,那么峰值流量也会成倍增加。 顺便说说Firefox下怎么调整单个主机下的并发数: # about:config network.http.max-connections : 30 network.http.max-connections-per-server : 15 network.http.max-persistent-connections-per-proxy : 8 network.http.max-persistent-connections-per-server: 6 需要说明的是HTTP1.1下以network.http.max-persistent-connections-per-server的指为准,这是因为HTTP1.1下缺省都是持久连接,反之如果是HTTP1.0,则以network.http.max-connections-per-server为准。 如果你使用TamperData检测一下,就能发现: HTTP1.1下Connection: Keep-Alive HTTP1.0下Connection: Close 本文出自 “秦汉唐宋元” 博客,请务必保留此出处http://linux521.blog.51cto.com/4099846/875813
转载于:https://my.oschina.net/766/blog/211540
firefox firbug 的“阻挡” blocking相关推荐
- firefox firbug 的“阻挡”
2019独角兽企业重金招聘Python工程师标准>>> 如图,用firebug分析网页,发现连接处有很多阻挡,而且时间很长,在firebug的官方wiki中找到了 "阻挡& ...
- SitePoint播客#65:是否拥有IE6?
Episode 65 of The SitePoint Podcast is now available! This week your hosts are Patrick O'Keefe (@iFr ...
- firebug “阻挡”
如图,用firebug分析网页,发现连接处有很多阻挡,而且时间很长,在firebug的官方wiki中找到了 "阻挡" 的解释(内容来自http://getfirebug.com/w ...
- About Firefox
配置Firefox 在 地址栏中输入about:config就可以进入配置窗口了. browser.display.show_image_placeholders 将此项设为false可消除网页上尚未 ...
- python 结束进程 terminate_python – 如果已存在浏览器窗口,则process.terminate()不适用于chrome / firefox子进程...
这不是python问题,并且您的代码不包含错误.这是浏览器的问题.使用–new-window启动firefox或chrome的可执行文件时,将在浏览器的现有实例中打开一个新窗口. 换句话说,您刚刚开始 ...
- 为什么我突然在Firefox中出现“阻止加载混合的活动内容”的问题?
本文翻译自:Why am I suddenly getting a "Blocked loading mixed active content" issue in Firefox? ...
- 火狐浏览器插件大全,火狐插件大全,firefox插件使用方法
使用火狐有一段时间了,装了N多插件以后自己也越来越离不开火狐了. 许多人不习惯用这个浏览器,因为刚下载回来的光杆司令除了浏览速度快点外和 IE 没什么区别. 其实火狐的特色在于扩展,优势在于开源,大家 ...
- 回顾 Firefox 历史
从很久之前开始,火狐浏览器就一直是开源社区的一根顶梁柱.这些年来它几乎是所有 Linux 发行版的默认浏览器,并且曾是阻挡微软彻底争霸浏览器界的最后一块磐石.这款浏览器的起源可以一直回溯到互联网创生的 ...
- Firefox 浏览器能,IE为什么不能?
86件Firefox浏览器能,而IE不能做的事[转帖] 转自 XOOPS & Design: 用上了Firefox1.0简体版 前言:十一月九日,就是Firefox1.0正式版全球发布的一天. ...
最新文章
- 31个好用的 Python 字符串方法,建议收藏!
- 用 JOTM 向Servlet中添加事务
- CUDA peer to peer多GPU间内存copy技术
- 求素数算法(C语言)
- UE4 Light Functions(光源函数)
- Javascript高级程序设计读书笔记(第三章)
- css3中transform中的translate(),scale(),skew(),一个参数时的情况
- 基于Java的webapp_第一个 JAVA WEB 应用
- java中solr的面试题_面试:----利用solr实现商品的搜索功能
- 秋招历险记-计算机网络篇
- ORACLE 如何获取uid
- laravel使用scout和elasticsearch中文分词ik
- 计算机的常用外部设备作用,八计算机常用外部设备.ppt
- 乐高教育版45544零件---分类识别
- Spring boot + Sharding JDBC 分库分表 及 分布式事务处理
- 数字0是奇数还是偶数_C程序检查数字是偶数还是奇数
- 一对一视频直播系统开源一对一视频交友源码程序
- 复旦学子《可解释机器学习》中文版火了,完整PDF开发下载!
- conda多环境切换与安装
- css+nth-child+无效,CSS nth-child()和:eq()在我的代码中不起作用