Firefox – How to unload a tab manually

browser-tabsfirefox

Firefox has a setting "Don't load tabs until selected" (see How do I make Firefox 13 Load All My Tabs on Startup or when Resuming Reload). I like that behaviour.

I am searching for a way to "deload"/deactivate a tab manually for a session (until I reload it).

It should stop all running JavaScript functions and plugins (like Flash). The whole webpage content may disappear until I reload/re-activate the tab, but that is not a requirement. The title has to be displayed as tab label (like it is the case with the startup setting, too).


The workaround would be to restart Firefox and don't switch to the tab I want to be deactivated. This is pretty annoying, of course.


EDIT: Here is what I found so far

Best Answer

In one of the links you referenced at Tab Utilities: Feature Request, there is already an answer from the developer (scroll down to comment no. 4) on how to do this. The answer is to:

  • Add the Restart Tab item to the context menu.

Why it's called "Restart Tab" and not "Unload Tab", I don't understand, but he says you can just change it if you want. Set:

  • extensions.tabutils.menu.context_restartTab.label to "Unload Tab".

By the way, at the moment it only works on tabs that are not selected/focussed. In other words, if you do "Restart Tab" on the currently open tab, it will just reload. You have to switch to another tab, then right-click on the tab you want to unload, and choose "Restart Tab".

Here are the instructions from the developer, I updated them a little:

  1. Set browser.sessionstore.max_concurrent_tabs to 0 in about:config. (BarTab Lite or Load Tabs Progressively extension should also work.) [ the above is outdated, in current versions of Firefox, go to preferences/options for Tabs, and check "Don't load tabs until selected". ]

  2. Unload tabs manually with Restart Tab or Restart All Tabs menuitem. [ first you have to make sure the "Restart Tab" item is added to the context menu, in Tab Utilities preferences/options -> Appearance -> Menus -> Tab Context Menu ]

  3. Unload tabs automatically after a specified period of inactivity with extensions.tabutils.restartAfter option (minutes).

  4. Tag bookmarks with "norestart" to make an auto-unload black list.