Mozzarella

Home

Load Background Tabs Lazily

This extension tries to duplicate some of the behavior of Load Tabs Progressively, an addon that has not been updated to work with newer versions of Firefox.

Load Background Tabs Lazily places newly created background tabs in a line and allows only a specific number to load, while blocking the rest. A tab is removed from the line once it has finished loading. The first blocked tab in the line is then allowed to load. This extension was designed for users with slow internet connections that routinely open multiple background tabs at the same time. It also helps users that open many background tabs at once by not overwhelming their browser or CPU.

Only tabs with http or https URLs are blocked from loading by this extension. In many cases, the URL to be loaded in a new tab can't be viewed by this extension when the tab is created and added to the line. Tabs with non http(s) URLs that won't be blocked and that were added to the line will quickly be removed when the URL is viewable.

Various commands or settings for the extension can be accessed in the toolbar button popup or in its Options page.

Chrome version: https://chrome.google.com/webstore/detail/load-background-tabs-lazi/jomliinifiaagjbbjncdncgoolfiakjj

Version 1.33 of this extension will work on Firefox versions 52-109. It can be found by clicking 'See all versions' under 'Version History'.

Read Before Installing

After this extension is added or installed, do not select 'Allow this extension to run in Private Windows'. This extensions Options page will open to the 'Permissions' section after installing. A user must select the 'Access your data for all websites' permission for this extension to function. Once the permission is granted, this extension may be turned on by clicking its toolbar button and selecting the 'Turn Off or On' command. The 'Access your data for all websites' permission allows for real-time content blocking on most web pages. As this is not a 'Recommended' (manually reviewed) extension, granting this permission is a security risk. This extension is best used in a profile or a non private window where data loss like passwords or personal info would not be very damaging, in case of rogue behavior.

If 'When you open a link, image or media in a new tab, switch to it immediately' is unselected in Firefox's Settings page, a mouse middle click on a web page link will create a new tab in the background. Otherwise, a shift middle click can be used to create a background tab. A bookmark opened in a new tab is not loaded in the background by default. A preference to reverse that behavior is in the about:config page:

If that setting is changed to true, a mouse middle click will open a bookmark in a new tab in the background. Otherwise, a shift middle click must be used.


Conflicting Extensions

HoldTab, LoadTabOnSelect, LoadTabOnSelect Evolution, LoadTabOnSelect 3, Load Background Tabs on Select, and Load Tabs Sequentially. These are extensions that block new background tabs from immediately loading.

Temporary Containers. The conflict happens when a blocked background tabs hostname is a match under Temporary Containers 'Per Domain Isolation'.


Issues/Limitations

For Firefox desktop only. Not for Android.

Current versions of Firefox have Fission (site isolation) enabled ( https://wiki.mozilla.org/Project_Fission ). Be aware that when opening a lot of non discarded tabs with different domains, memory usage may increase significantly due to Fission. Even if a new background tab is blocked from loading, memory may still be allocated for site isolation.

This extension does not work on restricted sites (addons.mozilla.org, support.mozilla.org, etc).

Ideally, all blocked tabs should be loaded before Firefox is exited or restarted.

Blocked tabs that are removed from the line before they have loaded can't be added back to the line if this extension is turned off or if the tabs are restored. Please select the 'Make new background tabs session proof' option, if this is a concern.

The title of a blocked tab that is recovered after a previous session is restored is blank or 'New Tab'. The option 'Make new background tabs session proof' will preserve the tab titles.

There is currently a Firefox bug where non discarded extension tabs with moz-extension URLs won't get restored on a Firefox 'Restart'. The about:profiles and about:restartrequired pages are examples of where a 'Restart' button can be found. Tabs with moz-extension URLs are restorable when the browser is normally exited. If using the option 'Make new background tabs session proof', please be aware that a 'Restart' button should not be pressed if there are blocked tabs that haven't been loaded yet. Even if the option isn't selected, there are a couple cases where this extension will transition a blocked tab to moz-extension URL. One case is a left click on a link with a target="_blank" attribute that opens the URL in a new background tab.

This extension does not block duplicate tabs or closed tabs that are reopened.

Sometimes a tab will stop showing a loading animation, but it will still be loading and Firefox will not yet have sent a webNavigation.onCompleted event to this extension.

When creating multiple tabs at once, some extensions will create them all as active tabs. Focus will end up on the last tab created, usually the rightmost tab. Enabling the option 'Add new tabs to the line that are created as active tabs.' is necessary to add these tabs to the line and then block them.

If browser.sessionstore.restore_pinned_tabs_on_demand is set to true in the about:config page, Firefox will not show pinned tabs as discarded tabs to an extension after a Firefox restart. This means commands like 'Add discarded tabs' will not work correctly in this situation, until the bug is fixed.

It is not recommended to open more than 1000 non discarded background tabs all at once. Firefox starts to become unusable on an old computer, when pushing it too much further than that. Note, the more tabs that exist in a window (even if many are hidden tabs), the longer it will take to create a new group of tabs in that window.

When a bookmark folder is middle clicked, the first bookmark in the folder is loaded into an active tab. By default, this tab is not added to the line. A shift middle click on a bookmark folder will open all the bookmarks in the background.


Relevant about:config Preferences


Permissions

Install