Firefox终极提速又一法

支付宝内搜索 9155838 即可领现金红包 每天都能领哦

可能是为了照顾普通用户的需求,Firefox发行时在性能上做了大众化的配置。可是我们每个人的机器配置和网络环境是不同的,在这里我们完全可以手动更改 user.js 文件来获取最佳的浏览速度。user.js的位置一般在C:\Documents and Settings\你的用户名\Application Data\Mozilla\Firefox\Profiles\ysjhcpb9.default\extensions\{CE49E315-575E-44df-8E4B-A8CD28A48B9D}\defaults\preferences
你电脑上的位置不一定是一模一样的,后面的文件夹可能有变动,你在C:\Documents and Settings\你的用户名\Application Data\Mozilla\Firefox\Profiles这个文件夹的时候搜索一下user.js就很快可以找到了。

快速设置
CODE
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.firstrequest", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("nglayout.initialpaint.delay", 0);

这个设置在很早经前就已经有人放出来了,Pipelining (管道)同时发出成倍数的连接请求,从而达到提升连接速度的效果。我觉得这也是为什么 IE 的速度会比早期的 Mozilla/Netscape 更快的一个重要的原因。

Initial Paint Delay 实际上延迟了整个网页的显示速度,但是因为用户更喜欢在整个网页完全截入之前就开始阅读网页(就像流媒体那样),所以在这里可以把值调低,加速网页的载入。

下面的设置是从Mozillazine 的众多相关主题中总结来的,其中有部分设置是很有争议的。
通用设置
下面的设置看起来是通用的,只是做了两个补充- 插件的路径可以在about:plugins 中找到,关掉了书签菜单延迟。

CODE
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("content.notify.backoffcount", 5);
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);

高配置,宽带
CODE
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);

这里有一点需要注意:Firefox 默认分配 4096 KB 的 cache.memory,而在这里设置的最后一行我们粗略的分配给它大概65M的缓存空间,当然这个数值可以根据你个人的实际需要做修改。

推荐文章

发表新评论