搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

how to unload inactive tabs in firefox?

  • 2 回覆
  • 0 有這個問題
  • 11 次檢視
  • 最近回覆由 zeroknight

more options

i'm currently writing my own firefox user.js configuration and now i'm at the topic "unloading inactive tabs" like microsoft edge does.

so what are the preferences for this kind of topic?

i want inactive tabs which have not been used for more than 5 minutes to be unloaded.

chatgpt gave me this "browser.tabs.unloadAfterDelay" preference but this one doesn't even exist in the about:config preferenes, would it still work if it doesn't even exist?

i'm currently writing my own firefox user.js configuration and now i'm at the topic "unloading inactive tabs" like microsoft edge does. so what are the preferences for this kind of topic? i want inactive tabs which have not been used for more than 5 minutes to be unloaded. chatgpt gave me this "browser.tabs.unloadAfterDelay" preference but this one doesn't even exist in the about:config preferenes, would it still work if it doesn't even exist?

所有回覆 (2)

more options

You could look at the following preference in about:config. browser.tabs.min_inactive_duration_before_unload

https://support.mozilla.org/en-US/kb/about-config-editor-firefox

有幫助嗎?

more options

Try the following settings:

browser.tabs.unloadOnLowMemory = true
browser.tabs.min_inactive_duration_before_unload = 300000   (5 minutes in milliseconds)
browser.low_commit_space_threshold_mb = 1000000   (1TB arbitrarily large amount of memory)
browser.low_commit_space_threshold_percent = 100  (Linux-only)


The last two "low commit space" values ensures it always detects a low memory state so it immediately triggers tab unloading after the minimum inactive duration has elapsed. This may have a performance hit though, it causes stuttering for me on Linux if it can't get out of the low memory state. It may work better on Windows.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題