What you’ll do: Turn on a hidden Firefox setting that trims memory use when the browser window is minimized.
Who this is for: Firefox users on laptops or older PCs, especially if 8GB of RAM feels crowded once tabs start multiplying.
Time: About 2 minutes plus a quick browser restart.
Quick Answer: Open about:config in Mozilla Firefox, search for config.trim_on_minimize, switch it to true, then restart Firefox. When Firefox is minimized, Windows can reclaim more of its unused memory. When you restore the window, your tabs load back normally.
If Firefox tends to sit open all day while you bounce between apps, this is a handy little tweak. It is built in, takes almost no effort, and can help on machines where browser tabs and limited RAM are in a permanent argument.
The setting itself is widely documented in Firefox tweak guides such as DigitBin’s about:config roundup and the long-running breakdown from gHacks. For broader browser performance context, Mozilla also has an official Firefox performance troubleshooting guide.
What you need before you start
- A Windows PC with Firefox installed.
- A recent version of Firefox. If needed, update from Mozilla’s official update guide.
- Enough open tabs or apps to make memory use worth checking.
- Optional: Windows Task Manager or Firefox’s built-in
about:memorypage if you want to compare before and after.
What this trick actually changes
Setting config.trim_on_minimize to true tells Firefox to be more aggressive about letting Windows reclaim memory when the browser is minimized. In plain English, Firefox stays usable, but it stops insisting on hanging onto as much RAM while it is sitting in the background.
This is most useful if you switch between Firefox and other work often, like jumping into VS Code, Photoshop, Zoom, or a game launcher. It is less exciting if Firefox is always the front-most app and rarely minimized.
How to enable Firefox memory trim on minimize
-
Open Firefox advanced settings.
Click the address bar, typeabout:config, and press Enter.Expected check: Firefox shows its advanced preferences warning page.
-
Accept the warning.
Choose the option to continue to advanced settings.Expected check: You can now search Firefox preferences from the top search bar.
-
Find the hidden setting.
Search forconfig.trim_on_minimize.Expected check: You see a single preference with that exact name.
-
Change it to true.
If the value isfalse, click the toggle icon so it changes totrue.Expected check: The row now shows
true. -
Restart Firefox.
Close Firefox fully, then open it again.Expected check: Firefox reopens normally, and the preference still shows
trueif you check again. -
Test the result.
Open several tabs, then minimize Firefox for a minute and watch memory use in Windows Task Manager or compare usage onabout:memory.Expected check: Minimized Firefox should usually use less memory than before, especially with lots of tabs open.
How to verify it is working
- Open Firefox with 10 or more tabs, then check memory use in Task Manager before minimizing it.
- Minimize Firefox, wait a little, then check again.
- If you prefer Firefox’s own tools, open
about:memorybefore and after your test for a more browser-specific view. - Restore Firefox and click through a few tabs. They should still work normally, though some pages may need a moment to become active again.
Common mistakes
- Expecting a speed boost while Firefox is open and active: this tweak mainly helps when Firefox is minimized.
- Forgetting to restart Firefox: the setting is easy to flip, but a restart gives you the cleanest test.
- Testing with only one or two lightweight tabs: the effect is usually easier to notice with heavier browsing sessions.
- Using this on the wrong platform: this tweak is mainly discussed for Windows memory behavior, not as a universal fix everywhere.
Troubleshooting
You cannot find config.trim_on_minimize:
Make sure you typed the setting name exactly. If it still does not appear, confirm Firefox updated correctly and try restarting the browser first.
You do not notice much memory change:
Open more tabs, minimize Firefox longer, and compare again in Task Manager. The benefit is easier to spot on lower-RAM machines or heavier tab sessions.
Firefox feels slower when you restore it:
That can happen because the browser is reloading resources after Windows reclaimed memory. If the tradeoff is not worth it on your machine, turn the setting back off.
You want to undo the tweak:
Go back to about:config, search for config.trim_on_minimize, switch it back to false, and restart Firefox.
When this trick is worth using
This setting makes the most sense if Firefox is your secondary app for part of the day. Maybe you research in the browser, then minimize it while working in another tool. Maybe you keep reference tabs open while coding. Maybe your laptop simply resents modern web pages on principle. In those cases, this is a practical tweak, not just another hidden setting collecting dust.
Try this next
Turn the setting on, open your normal tab pile, then compare Firefox memory use before and after minimizing it. If the difference is noticeable on your machine, keep it. If not, flip it back. Two minutes, one restart, and the browser either behaves better or politely proves it was innocent all along.