Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate discarded tabs in the tree #279

Open
cxw42 opened this issue Jan 2, 2022 · 3 comments
Open

Indicate discarded tabs in the tree #279

cxw42 opened this issue Jan 2, 2022 · 3 comments
Labels

Comments

@cxw42
Copy link
Owner

cxw42 commented Jan 2, 2022

chrome://discards
Tabs with Loading State = loaded (or loading and such) will use resources, as you can see on the task manager (shift-escape)
tabs that are unloaded (either due to not having been activated yet in the context of lazy loading, or having been discarded, which sets Lifecycle State to discarded) will not use resources.
Edge makes extensive use of 'sleeping' tabs, which visually appear discarded but aren't.

https://developer.chrome.com/docs/extensions/reference/tabs/#method-discard

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/discard

For implementations of this (not saying Tab Fern should actively discard any tabs!), you can see https://github.com/rNeomy/auto-tab-discard https://github.com/hrj/sloth https://github.com/rkodey/the-great-er-discarder-er https://github.com/jman/lazy_tab

Originally posted by @Luckz in #35 (comment)

@cxw42 cxw42 mentioned this issue Jan 2, 2022
9 tasks
@cxw42
Copy link
Owner Author

cxw42 commented Jan 2, 2022

When I discard tabs using auto-tab-discard, it puts a 💤 in the title:

image

I don't know if that is done by Chrome or by auto-tab-discard.

@cxw42 cxw42 added enhancement visuals Appearance, branding labels Jan 2, 2022
@Luckz
Copy link

Luckz commented Jan 3, 2022

That is a (default) option of ATD and has nothing to do with Chrome's API.
Greying out the tab favicon is also an ATD feature/option.
You can use the 'urgent discard' button on chrome://discards to see for yourself that (besides for customized Chromiums like Edge and Vivaldi) there is no visual cue whether a tab is loaded / unloaded, discarded, etc. Only currently loading tabs are typically indicated by an animation.

@cxw42
Copy link
Owner Author

cxw42 commented Jan 3, 2022

@Luckz thanks for the clarification! I agree showing this in TF would be reasonable. I would like it to be controlled by a user option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants