cxw42/TabFern

Indicate discarded tabs in the tree

cxw42 opened this issue · 3 comments

cxw42 commented

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 commented

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.

Luckz commented

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 commented

@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.