Firefox 為相容性犧牲部份激進優化。透過 about:config 啟用 HTTP 管線化、提高並行請求上限、歸零初始繪製延遲,頁面載入速度明顯提升。適用 Firefox 50+ (含 Quantum/現代版)。
about:config → 按 Enter → 點「接受風險並繼續」true8 (建議 8~16,預設 4)true (若使用 Proxy)0nglayout.initialpaint.delay → 值 0| 參數 | 建議值 | 說明 |
|---|---|---|
| network.http.max-connections | 256 | 總連線上限,預設 256 足夠 |
| network.http.max-connections-per-server | 16 | 單一伺服器連線上限,HTTP/1.1 建議 6~8,HTTP/2 多工化後較不關鍵 |
| network.http.max-persistent-connections-per-server | 8 | 持久連線保持數 |
| browser.cache.disk.enable | true | 磁碟快取啟用 |
| browser.cache.memory.enable | true | 記憶體快取啟用 |
| browser.cache.disk.smart_size.enabled | true | 智慧快取大小自動調整 |
| dom.ipc.processCount | 4~8 | 內容進程數,依實體核心數調整,過高反增記憶體壓力 |
| extensions.pocket.enabled | false | 停用 Pocket 整合減少背景請求 |
| datareporting.healthreport.uploadEnabled | false | 停用健康報告上傳 |
| toolkit.telemetry.enabled | false | 停用遙測資料收集 |
network.http.pipelining / network.http.proxy.pipeliningprefs.js 備份或使用 user.js 持久化user.js 範例:user_pref("network.http.pipelining", true);user_pref("network.http.pipelining.maxrequests", 8);user_pref("nglayout.initialpaint.delay", 0);about:support → 設定檔資料夾 → 開啟資料夾)pipelining=true、maxrequests=8、proxy.pipelining=true、initialpaint.delay=0。配合 user.js 持久化,每次更新後自動生效。若遇相容性問題,逐項還原預設值排查。Firefox 調教樂趣,就在這些細節裡。