arifwn / TinySuspender

Unload idle tabs to reduce memory and cpu usage.
56 stars 11 forks source link

Suspending tabs without changing their URLs #18

Open el4ctr0n opened 4 months ago

el4ctr0n commented 4 months ago

Dear developer, Can you please make it possible to suspend tabs without changing their URLs?

Adding chrome-extension://bbomjaikkcabgmfaomdichgcodnaeecf/suspend.html?url= to the tab URL makes it impossible to mass-bookmark these tabs and then open these bookmarks via Android Chrome.

Thank you for considering my request. Looking forward to your response.

arifwn commented 4 months ago

You enable "Use Native Tab Discard API" option in the extension setting:

image

Note that this mode has some drawbacks which is why it's not enabled by default, but it seems to fit your use case.

el4ctr0n commented 4 months ago

You enable "Use Native Tab Discard API" option in the extension setting:

image

Note that this mode has some drawbacks which is why it's not enabled by default, but it seems to fit your use case.

Thank you for including the Native Tab Discard feature in this extension.

Would you consider posting a request on IssueTracker (https://issuetracker.google.com/) for the API permissions whose lack causes the limitations of Native Tab Discard? If there already is such a feature request on IssueTracker, or even multiple, separately posted requests, I would gladly vote for them.

arifwn commented 3 months ago

It's been a while since I reviewed the native tab discard api, but the issue was inability to suspend foreground tabs and inability to trigger tab restore without bringing the suspended tabs to foreground. I'll review the api again in case things have changes.