舊文件

此處文件僅供參考,請自行考量時效性與適用程度,其他庫藏文件請參考文件頁面
我們亟需您的協助,進行共筆系統搬移、及文件整理工作,詳情請查閱參與我們

Firefox 最佳化

出自 MozTW Wiki

於 2005年10月24日 (一) 11:26 由 Petertc對話 | 貢獻 所做的修訂 [ 新手 ]使用最佳化軟體程式/Extension

Mozilla Firefox 最佳化
Firefox的官方版本相當注重不同的使用環境與穩定性, 但也為此做部份效能的犧牲. 這篇文章將說明與建議, 如何根據您的環境, 將Firefox的效能完全發揮出來.

重要:這些設定有可能造成不穩定或系統問題, 也不保證有顯著效果.
服用者請自行承擔風險, 有任何問題或建議也歡迎回報.



[ 新手 ]使用最佳化軟體程式/Extension

對於新手, 我們建議使用現成的最佳化程式或擴充套件來最佳化Firefox. 這些程式提供友善的介面, 讓您輕鬆進行最佳化Firefox的工作. 這些程式也大多提供復原的功能. 此外也有的依作者個人的經驗配置一組選項參數,讓你"one touch"就能完成最佳化, 不需要深入了解各選項的效果.

  • Mozilla Optimizer:個程式可以加速Mozilla, Mozilla Firefox, 以及 Netscape.適用於IBM/win32平台.

官方網站moztw討論

  • Tweak Network Settings:這個Extension主要進行網路連線的改進,並提供"one touch"加速的功能.Firefox支援的平台都可以使用.

官方網站moztw討論

  • Firetweaker:這個程式除了可以進行加速外,更提供很多Firefox工具-選項中所沒有提供的喜好設定.適用於IBM/win32平台.

官方網站moztw討論

  • FireTune:這個程式可依電腦的等級,以及網路連線的速度調整最佳化的參數.適用於IBM/win32平台.

官方網站moztw討論

  • FastFox:這個套件主要改善Prefetch Links, Tweak Network, Page Load Timer, Block Popups這幾個項目.

官方網站moztw討論

[進階]自行設定參數

Firefox一些細部的調整除了手動修改設定檔外,也可以在網址列輸入"about:config"進行"較友善"的選項搜尋與修改. 選項可以依參數的型態分為三類:字串,整數,與真假值.

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

"network.http.pipelining.maxrequests", 8

我們可以在上方過濾器(搜尋)輸入"network.http.pipelining",程式會自動列出符合的選項.
在您欲修改的選項上按右鍵-選擇"修改"(如過要修改的是真假值,請選擇切換),輸入欲修改的參數值(如本例是"8")

有時候您會過濾(搜尋)不到想要修改的選項.
這時候請按右鍵-選擇"新增",並選擇正確的型態並新增這個選項.

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



  • Speeding up Firefox the right way

原文來自[這裡]


(1)通用設定:這裡的選項與您的電腦運算速度及網路速度無關,是每台電腦都可使用的設定.其他的選項請依您的電腦與網路,在(2)~(6)項中選用.

"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撥接網路適用:P

"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 瀏覽的速度

原文來自[這裡]


"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

另外在你的 FF 捷徑後面加上 -turbo 這樣開 FF 也會加快
如"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 

關於非官方rebuild/repackage

非官方rebuild/repackage除了在編譯上對您的平台/CPU做出最佳化外,通常也會依作者的經驗,預先進行最佳化的設定.因此您不需要再自行設定,或只需要做部分設定.請參閱Unofficial_Builds


pigfoot前輩2005年三月以後版本的只需要加入

"nglayout.initialpaint.delay", 0

捷徑路經加上參數"-turbo"
如"C:\Program Files\Mozilla Firefox\firefox.exe" -turbo

其他的在前輩的build都已經是預設值


如果是用JTW rebuild的版本的話,只要改下面就好了(其他的已經調整過了)

"plugin.expose_full_path", true
"content.interrupt.parsing", true
"content.max.tokenizing.time", 2250000
"content.notify.interval", 750000
"content.switch.threshold", 750000
"nglayout.initialpaint.delay", 0
"network.http.max-connections", 4Cool;
"network.http.max-connections-per-server", 16
"network.http.max-persistent-connections-per-proxy", 16
"network.http.max-persistent-connections-per-server", Cool;
"network.http.pipelining.maxrequests", 8
"nglayout.initialpaint.delay", 0

捷徑路經加上參數"-turbo"
如"C:\Program Files\Mozilla Firefox\firefox.exe" -turbo



個人工具