The feature is called Tab Unloading, and weirdly enough they made it not easy to access despite its usefulness.

You basically have to type about:unloads in the address bar and hit enter. If you then click on ā€œUnloadā€, it will put the least used tabs to sleep. If you keep clicking that button until itā€™s greyed out, youā€™ll have unloaded all your tabs from memory.

This feature is handy if you want to temporarily switch to something that is memory hungry without having to close your 100 tabs.

109 points

Your Firefox should be doing this automatically when it detects the system needs more memory. You shouldnā€™t need to do it manually in almost any case

permalink
report
reply
19 points

Your OS should do this automatically, your programs shouldnā€™t worry about cold memory.

permalink
report
parent
reply
58 points

Your OS canā€™t decide when a tab is inactive though, given that they can run code, play media, etc. at arbitrary times.

permalink
report
parent
reply
15 points

Firefox canā€™t either, because pretty much any page today will have JavaScript running.

The only way it works is to force tabs that havenā€™t been opened in some time to unload regardless of activityā€¦ but thatā€™s something that the vast majority of users would not appreciate. For power users there are a ton of ā€œtab unloaderā€ add-ons that do this.

permalink
report
parent
reply
3 points

maybe @Eggymatrix ment swapping.
The OS tracks which memory-pages are used least and will swap them out when active programs need more ram than available.

permalink
report
parent
reply
5 points

Swapping anonymous pages is an extremely poor ā€œsolutionā€ to cold memory. Itā€™s the big hammer approach that technically always works but isnā€™t optimal for ā€¦anything really. Thatā€™s the best the kernel can easily and quickly know however which is why itā€™s done at all.

Itā€™d be much better if the process could shave off memory usage using its own domain knowledge. In the example of firefox, itā€™s much faster and less jarring to the user to have 10 tabs reloaded from the web (browser shows a spinner as usual, doesnā€™t lag) rather than swapped back in from disk (entire browser lags and it probably even takes longer).

Thereā€™s no reliable mechanism to signal any of this to me knowledge however, so processes must guess the right time to do discard memory pre-emtively.

permalink
report
parent
reply
0 points

I believe you are mistaken, there is no way that reloading a tab from the web is faster than it being read from the disk.

permalink
report
parent
reply
2 points

Edge does this very aggressively and I hate itā€¦ Also I believe that Chromium based browsers use more memory per tab, so that might be the reason why it feels more aggressive. Firefox does this very rarely.

permalink
report
parent
reply
4 points

Nope! Not happening or at least not soon enough. Neither on macOS or Linux (canā€™t speak for the stupid platform).

Firefox will happily keep tabs open, even if macOS reports major memory pressure or Linux needs to invoke the OOM killer because itā€™s Gigabytes into swap.
Not to speak of what happens before memory pressure is reached; Firefox will also happily use all of your memory even if youā€™d rather have it free for something else youā€™re going to do next.

permalink
report
parent
reply

Firefox does this automatically to prevent crashing. Thereā€™s no real reason to unload tabs manually. If your operating system or Firefox needs more memory, then it will unload the tabs automatically. Unused ram is wasted ram, donā€™t be scared by ram usage going up. It gets freed on demand.

permalink
report
reply
9 points
*
Deleted by creator
permalink
report
parent
reply
9 points

No, only into your display name.

permalink
report
parent
reply
3 points

There are reasons, and there are addons that allow you to unload tabs via their right click menu.

For me it is a way to keep tabs in a window for organization without them using cpu. In some sense itā€™s like replacing tabs with bookmarks that integrate into the browser like tabs.

permalink
report
parent
reply
18 points

Just close unused tabs smh

Canā€™t understand people whoā€™re juggling 100s of tabs

permalink
report
reply
9 points

Thatā€™s fine, do what works for you. I usually have 50+ tabs open, sometimes >100. Iā€™m a software dev, so Iā€™ll typically have the following:

  • a dozen or so JIRA tickets
  • a dozen or so GitHub PR tabs
  • a dozen or so documentation tabs
  • several background tabs with stuff in listening to (usually music or streams)
  • several SM or news pages (for breaks)

When I finish a project, Iā€™ll close everything and start it all over again. I basically use tabs as a mixture of to-dos and bookmarks, but only for things I need in the short term.

My personal computer usually only has 20 tabs or so, mostly with gaming wikis or shopping pages.

It works well for me.

permalink
report
parent
reply
8 points

Especially for school, I would have 10 to 15 tabs open per research rabbit hole. With lots of different assignments due, Iā€™d have maybe 3 or 4 of these going at a time. Itā€™s much easier to keep them open than to bookmark them and try to find them later.

permalink
report
parent
reply
6 points

Personally I use simple tab group that allow you to separate tabs into groups that you can open in different windows. Itā€™s extremely useful but it means sometimes if you switch between multiple tab groups you might have a lot of tabs open, but using this would allow you to majorly mitigate that problem.

permalink
report
parent
reply
6 points
*

I just say eh this one is important but I canā€™t rn so Iā€™ll deal with it later. Anyway, 60 tabs waiting for me on FF Android. Idk how much I tabs are stashed on PC lol. ADHD struggles are real

permalink
report
parent
reply
4 points

(i had over 2000 earlier)

permalink
report
parent
reply
1 point

Or use oneTab.

permalink
report
parent
reply
-4 points

They cannot juggle 100 tabs.

Simple as that

Its not possible to manage for anyone.

Theyre just too dumb to close them

permalink
report
parent
reply
2 points

Never have I been so offended by something I 100% agree with

permalink
report
parent
reply
-4 points

This, if you want to act on something later, just create a bookmark and set a reminder, act on what you need, then close and move on, donā€™t clutter your browser and your head.

Usually, i open one window for each task, so i donā€™t get a lot of unrelated content mixed up and loose focus. I rarely need more than 1~5 tabs.

permalink
report
parent
reply
12 points

I use this extension: https://addons.mozilla.org/en-US/firefox/addon/discard/ which provides an option in the context menu for tabs to discard them. I donā€™t use it often but it can be helpful if your browser is slowing down.

permalink
report
reply
10 points

addon Tab Suspender does this automatically

permalink
report
reply
1 point
permalink
report
parent
reply
0 points

Bump

permalink
report
parent
reply

Firefox

!firefox@lemmy.ml

Create post

A place to discuss the news and latest developments on the open-source browser Firefox

Community stats

  • 1.8K

    Monthly active users

  • 887

    Posts

  • 17K

    Comments

Community moderators