Automatically discards all tabs at startup, before they load, reducing memory footprint and unnecessary bandwidth usage.

Latest Version

Version
0.5
Update
August 27, 2019
Size
25.24KiB
Developer
Category
Users
2,000+
Rating
4.36 ★
Manifest Version
2
Web Store Status
Languages Support
English (UK)
See more
Permissions
Tabs
See more

Sloth Extension

An open-source and light-weight chrome / chromium extension which ensures that tabs are lazily loaded.

Source code: https://github.com/hrj/sloth

Requires Chrome 54+.

## How it works

This plugin uses the discard API available since Chrome 54. All tabs except new tabs or \"special\" tabs are discarded. Discarded tabs are visible in the tab bar, but not loaded from the network nor kept in memory.

If a window doesn't have a new tab, it is created and activated. This prevents any tab from loading during startup, unless you explicitly select it.

Special tabs are those with chrome:// URLs, for example.

Note: Where there are hundreds of tabs open in the session, a couple of them sneak through and become active. This limitation is due to the design of the browser. See https://github.com/hrj/sloth/issues/1.

## History / Credits

I found an extension called Native Lazy Tabs here. It was distributed under the GPL license. I adapted it and added the \"new tab\" feature.

The icon is by Jaime Serra, distributed under the CC license.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Sloth", "short_name": "Sloth", "description": "Automatically discards all tabs at startup, before they load, reducing memory footprint and unnecessary bandwidth usage.", "version": "0.5", "permissions": [ "tabs" ], "background": { "scripts": ["js/eventPage.js"], "persistent": false }, "icons": { "16": "img/icon16.png", "48": "img/icon48.png", "128": "img/icon128.png" }, "browser_action": { "default_icon": { "16": "img/icon16.png", "48": "img/icon48.png", "128": "img/icon128.png" } }, "incognito": "not_allowed", "manifest_version": 2, "minimum_chrome_version": "54", "options_ui": { "page": "html/options.html", "chrome_style": true }}
Read more