transparently "closing" tabs and restoring them? (resource minimization) #3551
Unanswered
TheOverpassArsonist
asked this question in
Q&A
Replies: 1 comment 3 replies
-
The idea looks beyond the project scope of TST, so I won't implement it as a built-in feature of TST. But it's OK to provide APIs required to implement a helper addon for that, if it doesn't break TST's concept. treestyletab/webextensions/sidebar/scroll.js Lines 391 to 410 in a740926 Items in the sidebar are built with these lines, from corresponding tabs. So, it may be possible to implement the features you told by adding some codes here. Sorry I have less motivation to implement APIs by my hand. i hope you or someone does that and sends a pull request to this project. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Apologies if this has been asked already or is documented somewhere (tbh I'm sure it probably has, but I can't find the right search terms to draw it out if so) but I was curious if there is a way to transparently save/open tabs without removing them from the tree.
In other words it would be like a grade higher than tab-suspension; instead of simply suspending the tab you would save it to disk, close it outright, and then re-open it only once the tree is unfolded. (or, for even lazier loading, only once the specific tab is clicked on, hovered over, etc.)
In theory this can be done with bookmarks, and to be honest if you were a responsible human being you probably would, but I'm more of a 4-digit-tab-count kind of person and having it as an integrated feature would be a huge convenience boost for me. In my defense, bookmarks do have a hefty convenience penalty both in directly using them and in the fact that they don't stay updated, requiring you to manually make sure they're in sync. It's not entirely laziness either, I just tend to end up searching and looking into tons of different topics and trying to keep a bookmark catalog of all of the things I've looked into or wanted to look into neat and orderly would be impossible practically speaking. (Still, I'm not delusional that once your in the 4 digits of tabs you might be a digital hoarder.) Even if you only have a dozen or so tabs though trying to restore them all simultaneously can cause connections to be dropped since it can look like a DDOS, so restoring from a local copy of the page instead would also mitigate that issue since you wouldn't necessarily need to ping their server to restore the tab from the cached state on-disk. In theory something like this would allow TST to open a basically arbitrary amount of tabs without issue since it's not actually "opening" any of the tabs at all, but rather loading a list of the tabs that it had open and only quering the tabs that it needs to actually open on-demand when the tab content is needed, otherwise keeping it as a phantom-entry that looks like it's there and open without actually demanding any resources.
While tab suspenders can reduce the resource usage of a tab, they still keep that tab open as far as I understand it. (admitedly most of my experience here is with chrome derivatives so maybe firefox has a different architecture that allows for this to be done way more efficiently) If silent tab culling was built into / integrated into TST though then since TST manages tabs itself it could display the tabs as if they were all there without incurring any overhead since they could be completely closed in actuality. Now, there are obviously going to be some storage space implications involved in doing that with too many tabs but, speaking at least for myself, I would be more than content giving several dozen gigabytes to my browser if it meant seamlessly being able to handle an arbitrary amount of tabs. (well, near-seamlessly, things like Youtube where the content is explicitly network-dependent might have issues)
I'm not sure how doable this would be based on how things are written behind the scenes, but at least for me it would be an insanely huge overhaul and I imagine this sort of behaviour would help others quite a bit too, even if they are responsible human beings who know what a close button is.
(note : this would definitely conflict with the default horizontal tab bar as I understand it, I don't think there is any easy way around that and I'm under no delusion that there is. With that said, keeping the horizontal tab bar in sync with TST is already a non-starter since it's just fundamentally so much more limited, so I don't think that would constitute a huge issue. It at least doesn't to me and I can't imagine it would to many others either)
Beta Was this translation helpful? Give feedback.
All reactions