Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hrj/sloth
Lazy load tabs in chromium
https://github.com/hrj/sloth
chrome-extension chromium-extension tabs tabs-management
Last synced: about 2 months ago
JSON representation
Lazy load tabs in chromium
- Host: GitHub
- URL: https://github.com/hrj/sloth
- Owner: hrj
- License: gpl-3.0
- Created: 2017-06-15T18:33:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T13:18:07.000Z (over 5 years ago)
- Last Synced: 2024-10-28T13:10:57.004Z (about 2 months ago)
- Topics: chrome-extension, chromium-extension, tabs, tabs-management
- Language: JavaScript
- Size: 50.8 KB
- Stars: 80
- Watchers: 8
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SlothA light-weight chrome / chromium plugin which ensures that tabs are lazily loaded.
Requires Chrome 54+.
Available in [Chrome store](https://chrome.google.com/webstore/detail/sloth/filkeckmpdjogddcamkafnekhgfaehkc?hl=en-US&gl=IN).
## 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: When there are hundreds of tabs open in the session, a couple of them manage to sneak through and become active. This is a limitation due to Chromium's design. See https://github.com/hrj/sloth/issues/1.
## How to Install Locally
If you can't / don't want to use the [Chrome Store](https://chrome.google.com/webstore/detail/sloth/filkeckmpdjogddcamkafnekhgfaehkc?hl=en-US&gl=IN), you can install it manually as follows.From the release page, download the zip file and extract it somewhere on your file-system. Go to `chrome://extensions` and click
`Load Unpacked extension`, select the `slot` directory and press `Ok`.## History / Credits
I found an extension called Native Lazy Tabs [here](https://www.crx4chrome.com/extensions/ianooggapgmmmfojacmhnfaheidgpbki/). 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.