2009/03/08

Firefox 最佳化

自行設定參數

注意:以下內容針對 Firefox 1.0+ 撰寫,可能會因程式版本更新而有所更動!

Firefox 一些細部的調整除了手動修改設定檔外,也可以在網址列輸入 "about:config" 進行「較友善」的選項搜尋與修改。

舉例來說,要設定下面這個選項:

"network.http.pipelining.maxrequests", 8

可以在上方過濾器(搜尋)輸入 "network.http.pipelining",程式會自動列出符合的選項。在欲修改的選項上按右鍵選擇「修改」(如要修改的是真假值,請選擇切 換),輸入欲修改的參數值(如本例是"8")即可。若是找不到想要修改的選項或需要加入新選項時,請按右鍵選擇「新增」後點選要加入的項目類型。 about:config內的項目可以依參數的型態分為字串、整數、與真假值三類。

以下建議的設定與參數由不同作者所做,內容各有一些不同。您可以擇一套用,或全部使用。

Speeding up Firefox the right way

資料來源:Speeding up Firefox the right way (http://codebetter.com/blogs/darrell.norton/archive/2005/01/28/48720.aspx)
1. 通用設定
這裡的選項與您的電腦運算速度及網路速度無關,是每台電腦都可使用的設定。
"content.notify.backoffcount", 5
"network.http.pipelining", true
"network.http.proxy.pipelining", true
"network.http.pipelining.maxrequests", 8
"plugin.expose_full_path", true
"ui.submenuDelay", 0
2. 寬頻/高速電腦使用者設定
這些設定適用60MB以上的記憶體,以及較快的寬頻網路((A)DSL/Cable/fiber)
"browser.cache.memory.capacity", 65536
"content.interrupt.parsing", true
"content.max.tokenizing.time", 2250000
"content.notify.interval", 750000
"content.notify.ontimer", true
"content.switch.threshold", 750000
"network.http.max-connections", 48
"network.http.max-connections-per-server", 16
"network.http.max-persistent-connections-per-proxy", 16
"network.http.max-persistent-connections-per-server", 8
"nglayout.initialpaint.delay", 0
3. 中等頻寬/高速電腦使用者設定
這些設定適用較慢的寬頻網路((A)DSL/Cable)
"browser.cache.memory.capacity", 65536
"content.max.tokenizing.time", 2250000
"content.notify.interval", 750000
"content.notify.ontimer", true
"content.switch.threshold", 750000
"network.http.max-connections", 48
"network.http.max-connections-per-server", 16
"network.http.max-persistent-connections-per-proxy", 16
"network.http.max-persistent-connections-per-server", 8
"nglayout.initialpaint.delay", 0
4. 窄頻/高速電腦
56K/V9.0撥接網路適用
"browser.cache.memory.capacity", 65536
"browser.xul.error_pages.enabled", true
"content.interrupt.parsing", true
"content.max.tokenizing.time", 3000000
"content.maxtextrun", 8191
"content.notify.interval", 750000
"content.notify.ontimer", true
"content.switch.threshold", 750000
"network.http.max-connections", 32
"network.http.max-connections-per-server", 8
"network.http.max-persistent-connections-per-proxy", 8
"network.http.max-persistent-connections-per-server", 4
"nglayout.initialpaint.delay", 0
5. 寬頻/慢速電腦
這裡的最後一項設定取消狀態列的功能,以節省電腦的運算。
"content.max.tokenizing.time", 3000000
"content.notify.backoffcount", 5
"content.notify.interval", 1000000
"content.notify.ontimer", true
"content.switch.threshold", 1000000
"content.maxtextrun", 4095
"network.http.max-connections", 48
"network.http.max-connections-per-server", 16
"network.http.max-persistent-connections-per-proxy", 16
"network.http.max-persistent-connections-per-server", 8
"nglayout.initialpaint.delay", 1000
"dom.disable_window_status_change", true
6. 窄頻/慢速電腦
"content.max.tokenizing.time", 2250000
"content.notify.interval", 750000
"content.notify.ontimer", true
"content.switch.threshold", 750000
"network.http.max-connections", 32
"network.http.max-connections-per-server", 8
"network.http.max-persistent-connections-per-proxy", 8
"network.http.max-persistent-connections-per-server", 4
"nglayout.initialpaint.delay", 750
"dom.disable_window_status_change", true

加快你 FF 瀏覽的速度

資料來源:討論主題 #4913 (http://forum.moztw.org/viewtopic.php?t=4913)
"browser.turbo.enabled", true
"network.http.pipelining", true
"network.http.pipelining.firstrequest", true
"network.http.pipelining.maxrequests", 32
"network.http.proxy.pipelining", true
"nglayout.initialpaint.delay", 0
另外在捷徑路徑後面加上 -turbo ,啟動速度也會加快:
"C:\Program Files\Mozilla Firefox\firefox.exe" -turbo

其他

"browser.display.show_image_placeholders", true
"browser.chrome.favicons", fales
"browser.urlbar.autocomplete.enabled", true
"browser.urlbar.autoFill", true
"network.http.pipelining.firstrequest", true

參數說明:

browser.display.show_image_placeholders
當圖片無法正確顯示時,會顯示一個替代的圖案告訴你這裡有圖片。
browser.chrome.favicons"
書籤圖示的功能,參見討論主題 #3565 (http://forum.moztw.org/viewtopic.php?t=3565)
browser.urlbar.autocomplete.enabled
待補充
browser.urlbar.autoFill
類似 IE 的自動完成功能。
network.http.pipelining.firstrequest
待補充

No comments: