如何讓Firefox最佳化得比Chrome更快
來源:互聯網
上載者:User
Firefox一向比IE快得多,但Google Chrome發布之後,Firefox便更像是龜兔賽跑中的烏龜而不是Firefox了。這篇文章提供了最佳化方法讓Firefox最佳化得比Chrome更快: 1、安裝BleachBit(選擇下載多語言版,支援Linux和Windows,已包含在Ubuntu 和Debian軟體倉庫內),專門用於釋放磁碟空間的開源工具,可清除Firefox的緩衝和曆史,改進啟動速度。
2、 在地址欄輸入about:config,改變設定以更快的渲染網頁:建立新的整數值content.notify.backoffcount,設定值為 5;建立新的值nglayout.initialpaint.delay,設定為0。第一個值是讓Firefox不要等到整個網頁全部下載後再去渲染,第 二個值是改進渲染速度,不要等待網頁的布局資訊全部下載後再渲染。
3、最佳化曆史:開啟about:config,將儲存的瀏覽曆史到期天數 browser.history_expire_days從預設的180天從改為7天,browser.history_expire_days_min 從預設的90天改為7天(兩個值也可以該為14或其它較低的天數),browser.history_expire_sites定義儲存的最大網站數量從 預設的40000降到更少。
4、加速菜單:開啟about:config,建立新整數ui.submenuDelay,值設為0。
5、禁用IPv6,IPv4仍然是主流,IPv6數量很少,因此關閉它可以提高速度:開啟about:config,將network.dns.disableIPv6從預設的'False'改為'True'。
6、增加緩衝空間,如果你的記憶體有2GB,那麼不妨把緩衝設定大一點:開啟about:config,建立browser.cache.memory.capacity,設為32768。" 7、使用TraceMonkey JavaScript引擎:開啟about:config,改javascript.options.jit.chrome為True,javascript.options.jit.content的值為True。
8、最佳化TCP:開啟about:config,加入(有些伺服器不支援)
browser.tabs.showSingleWindowModePrefs – true
network.http.max-connections – 48
network.http.max-connections-per-server – 16
network.http.max-persistent-connections-per-proxy – 8
network.http.max-persistent-connections-per-server – 4
network.http.pipelining – true
network.http.pipelining.maxrequests – 8
network.http.proxy.pipelining – true
network.http.request.timeout – 300
content.notify.ontimer - true
trim_on_minimize - true (Windows only)
content.interrupt.parsing - true
content.max.tokenizing.time - 2250000
content.maxtextrun - 8191
content.notify.interval - 750000
content.switch.threshold - 750000