Chinaunix首页 | 论坛 | 博客
  • 博客访问: 372588
  • 博文数量: 80
  • 博客积分: 6032
  • 博客等级: 准将
  • 技术积分: 730
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-05 20:07
文章分类

全部博文(80)

文章存档

2007年(1)

2006年(22)

2005年(57)

我的朋友

分类: LINUX

2005-12-05 11:52:08

firefox优化………

在这里下载
我是1.5,不用安装,解包即可使用
下面是找到的一些优化方法,我没有试,如果有效果的话,拜托告诉我,谢谢


Firefox 终极提速
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 中找到,关掉了书签菜单延迟。
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);


高配置,宽带
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,当然这个数值可以根据实际需要做改动。

高配置,网络连接比较慢

以下的设置适用于网络连接不理想的用户,当然还不是说还停留在小猫时代的用户,而是指比较慢的DSL / Cable 连接。
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("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("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);


高配置,窄带
user_pref("browser.xul.error_pages.enabled", true);
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 30
00000);
user_pref("content.maxtextrun", 8191);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-con
nections-per-server", 4);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);


低配置 宽带
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 1000000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 1000000);
user_pref("content.maxtextrun", 4095);
user_pref("nglayout.initialpaint.delay", 1000);
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("dom.disable_window_status_change", 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", 750);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("dom.disable_window_status_change", true);



以上并没有包括类似像catching SSL pages这类建议。 虽然关于此类设置观点并不尽相同,可有一点是共同的:更改 pipelining 的确可以提高firefox的速度。
低端用户也可以像高端用户那样将firefox默认调用4Mcache.memory的数值调高。 而拥有高频或者双CPU的用户同样也可以禁用状态栏来提升速度。

阅读(1261) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~