Auto Tab Discard Automatically discard inactive tabs to free up resources
Support Development
PayPal ● 
Bitcoin Address: 1sM2BrTH8BRgt3quiASK8TmYSafutNvDo
 ● 
Ether Address: 0xCf9eaAc56992e12EB61fD46342172d4EEff5C8e4

Advertisement
Screenshot
"Auto Tab Discard" automatically discards inactive tabs after a defined time period to free up memory usage of the tab and to prevent background scripts from using the computational power of your browser when the tab is not being used by the user. This extension uses the native method to discard tabs and hence does not have issues the other similar extensions might suffer from. Also in this method, the discarded tabs will not use any memory at all and will restore to the previous state while preserving page state (like scroll position for instance).

Features

  1. What is the "Auto Tab Discard" extension and how does it work?

    "Auto Tab Discard" extension aims to reduce both memory and CPU usage of inactive tabs when they have not been used for a specified period of time. The extension basically monitors tab inactivity period and request discarding if the tab that is not been used for that period. A tab that goes to the discarded state actually gets wiped up from memory and hence can not run any background scripts at all. This significantly improves browser performance and prevents unwanted background activities when they are not really needed.

  2. Can I help translating this extension into other languages?

    Yes, please join the team https://www.transifex.com/open-source-dev/auto-tab-discard/dashboard/.

  3. How can I prevent a certain website from being discarded?

    If a tab is playing media or has unsaved form data, by default the extension does not request discarding of the tab (there are other conditions too. check the options page to visit all available ones). So normally there is no need to whitelist a hostname. But if you need to whitelist a hostname for any reason, you can use the right-click item over the toolbar button to append the hostname. If a hostname is in the list, all tabs originated from this hostname will not go to the discarded state. You can add multiple hostnames from the options page or even remove one hostname from the whitelist.

  4. What's new in this version?

    Please check the Logs section.

  5. When I select "Discard all inactive tabs" from the toolbar context menu, some tabs do not go the discarded state. Is there any reason for this?

    By default the extension does not request discarding of a tab when it has unsaved form data or a media is playing. You can use the options page to alter this behavior or add new conditions like do not discard tabs when they are pinned.

  6. What does happen if I have a few discarded tabs and my browser crashes?

    Basically nothing at all. Since this extension uses the native method, your browser will restore all the discarded tabs like all other opened tabs.

  7. What is the difference between the native method and the method that is used by other similar extensions?

    In the native method, the extension requests tab discarding from your browser and browser handles the rest. Basically, when this request is received, tab data (like scroll position or its HTML content) is stored in a binary object and tab is wiped out completely so there will be no activity related to this tab what so ever. In the non-native methods, the tab is being replaced with an internal resource page which is lighter than the actual tab definitely but this method has many drawbacks like restoring the actual tab needs to be handled at the extension level or still, the tab uses memory (like a normal light tab) and is not actually been wiped from tab list.

  8. [Firefox Only] Can I use this extension to discard tabs when multiprocessor support is disabled?

    Unfortunately not. If browser.tabs.remote.autostart is set to false in the about:config, this extension is not operating correctly. For more info see https://github.com/rNeomy/auto-tab-discard/issues/66

  9. [Technical Note] It seems sometimes the extension simply just not discard a background tab that it should. Why?

    Skipping the discarding has two main reasons: 1. a tab matches a condition that prevents discarding (e.g. do not discard this tab is checked for this particular tab from the popup window). From version 0.3.2, the extension adds a tooltip text to the toolbar button for this particular tab if such a condition meets. 2. The number of not-discarded tabs is less than the number that the user sets on the options page. Still, the extension might sometimes not discard tabs with no good reason. That is true in fact. To be optimal, this extension only requests checking the discarding conditions when it really is necessary. To be more precise, a tab will request the check only once when it just moved to background after the user-defined discarding period is over. That's it. So a single background tab cannot ask for discarding more than once. There are some rare situations where a tab does the request and it gets rejected for one of the above reasons. In this case, this tab is not going to be discarded unless at least more than one tab gets opened. To generate this bug you can set discarding period to 10 and the maximum number of tabs to 1. Now open a tab and browse a website. Open the second tab and wait for 10 seconds then load a second website. You are expecting the first tab to be discarded but since its discarding request is sent before there are two real tabs, this request is being ignored. The only way to discard the first tab now is to switch to another tab so that the second tab this time sends a new discarding request which results in the first tab to be discarded.

  10. Is it possible to alter the extension's preferences on all computers in a domain?

    As of version 0.3.3, the extension reads all its configuration defaults from the managed storage which can be contorted by the domain administrator. For instance, if you don't want the extension to open FAQs page when it gets installed on a computer, set faqs preference value to false. The PLIST file for a Mac computer would look like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>faqs</key>
        <false/>
    </dict>
    </plist>

    To see the list of all supported preferences and their descriptions take a look at schema.json file. To set the values, it is recommended to set them on the options page and use the exporting feature to get the JSON version. Use the values that are set in the JSON object for your managed storage.

Matched Content

Reviews

Please keep reviews clean, avoid the use of improper language and do not post any personal information.
  • <a> Defines an anchor.

    Example: <a href="http://add0n.com">a sample link</a>

  • <pre><code> Syntax Highlighting (Supported languages: Bash, JSON, HTML, JavaScript, and CSS).

    Example: <pre><code class="javascript">var foo = 'bar';</code></pre>

  • <strong> Defines bold text
  • <blockquote> Defines a long quotation
  • <caption> Defines a table caption
  • <cite> Defines a citation
  • <em> Defines italic text
  • <p> Defines a paragraph
  • <span> Defines a section in a document
  • <s> Defines strikethrough text
  • <strike> Defines strikethrough text
  • <u> Defines underlined text
  • <br> Defines a single line break; can be used alone and don't need an ending tag

Preview

What's new in this version

Version--
Published--/--/--
Change Logs:
    Last 10 commits on GitHub
    Hover over a node to see more details

    Need help?

    If you have questions about the extension, or ideas on how to improve it, please post them on the  support site. Don't forget to search through the bug reports first as most likely your question/bug report has already been reported or there is a workaround posted for it.

    Open IssuesIssuesForks

    Permissions are explained

    PermissionDescription
    idleto resume timers after when system is restored from idle state
    storageto keep internal preferences and the user-defined ones
    tabsto inject monitoring script into tabs
    *://*/*to have permission to injecting monitoring script into tabs
    contextMenusto add items to the right-click context menu over the toolbar button and tab elements
    notificationsto display notifications

    Recent Blog Posts on add0n.com