Live data from Hacker News

Reducing power consumption for background tabs

blog.chromium.org

11–20 of 62 posts

Re: Reducing power consumption for background tabs

#11
post #5
post #2

The Great Suspender is a great plugin to achieve this.

This looks nice! As I enabled it, I got the normal warning about "This plugin can view all data" etc, and I started looking for a plugin that can show me what servers plugins are connecting to... it seems there is no such thing. Perhaps time to re-enable little snitch.

OneTab is another one to look at. It bundles the tabs into a list instead of leaving them open.

Re: Reducing power consumption for background tabs

#12
How much benefit is there in doing anything at all on a background tab? Would there be many use cases where simply suspending the background tab threads would lead to a much worse user experience?

I wouldn't mind having my background Netflix just stop, or having to wait a few secs for an interval refresh after bringing a tab to front.

But seeing as this seems an active area of research and debate I have a feeling that this solution has drawbacks I'm not considering...

Re: Reducing power consumption for background tabs

#13

How much benefit is there in doing anything at all on a background tab? Would there be many use cases where simply suspending the background tab threads would lead to a much worse user experience? I wouldn't mind having my background Netflix just stop, or having to wait a few secs for an interval refresh after bringing a tab to front. But seeing as this seems an active area of research and debate I have a feeling tha…

There are use cases such as a webmail client still fetching messages so it can notify (e.g. via browser tab icons), or so that a collaborative editor keeps up with changes.

Even consider the typical hackernews demo of a javascript genetic algorithm: you probably want to be able to leave it to run for a while while you do other things without being required to keep the tab visible.

Re: Reducing power consumption for background tabs

#14

How much benefit is there in doing anything at all on a background tab? Would there be many use cases where simply suspending the background tab threads would lead to a much worse user experience? I wouldn't mind having my background Netflix just stop, or having to wait a few secs for an interval refresh after bringing a tab to front. But seeing as this seems an active area of research and debate I have a feeling tha…

There are use cases such as a webmail client still fetching messages so it can notify (e.g. via browser tab icons), or so that a collaborative editor keeps up with changes.

Even consider the typical hackernews demo of a javascript genetic algorithm: you probably want to be able to leave it to run for a while while you do other things without being required to keep the tab visible.

Re: Reducing power consumption for background tabs

#15
post #4

>Tabs playing audio or maintaining real-time connections like WebSockets or WebRTC How long before a "performance best practices" guide suggests leaving a websocket open to ensure snappier page responses when users switch to your tab.

I had a similar thought. I think browsers should require user permission for a tab to use more than 1% of a core on average.

That would get annoying soon. You won't want your browser to ask for that permission or throttle page layout to use 1% of a single core during page loads or the moment that browser-based shooting game gets lively and requires fast reactions, for example.

I think it would be better to give each tab a power budget that, initially, allows it to run for S seconds at full power, and that give it new budget at a rate of x However, I fear that still won't be enough. The list of heuristics and exceptions could get so long that the resulting benaviour becomes difficult to explain.

Re: Reducing power consumption for background tabs

#16

How much benefit is there in doing anything at all on a background tab? Would there be many use cases where simply suspending the background tab threads would lead to a much worse user experience? I wouldn't mind having my background Netflix just stop, or having to wait a few secs for an interval refresh after bringing a tab to front. But seeing as this seems an active area of research and debate I have a feeling tha…

There are use cases such as a webmail client still fetching messages so it can notify (e.g. via browser tab icons), or so that a collaborative editor keeps up with changes. Even consider the typical hackernews demo of a javascript genetic algorithm: you probably want to be able to leave it to run for a while while you do other things without being required to keep the tab visible.

So let the user promote these with pinned tabs. I think that's a reasonable compromise.

Re: Reducing power consumption for background tabs

#17
post #4

>Tabs playing audio or maintaining real-time connections like WebSockets or WebRTC How long before a "performance best practices" guide suggests leaving a websocket open to ensure snappier page responses when users switch to your tab.

Then after some years will come a Google AMP for background tabs, then there will be complain that it went too far, then .... everything goes in loops. :)

Re: Reducing power consumption for background tabs

#18

How much benefit is there in doing anything at all on a background tab? Would there be many use cases where simply suspending the background tab threads would lead to a much worse user experience? I wouldn't mind having my background Netflix just stop, or having to wait a few secs for an interval refresh after bringing a tab to front. But seeing as this seems an active area of research and debate I have a feeling tha…

There are use cases such as a webmail client still fetching messages so it can notify (e.g. via browser tab icons), or so that a collaborative editor keeps up with changes. Even consider the typical hackernews demo of a javascript genetic algorithm: you probably want to be able to leave it to run for a while while you do other things without being required to keep the tab visible.

Browsers have notification APIs now, from what I've seen. No need to run a full background tab just to handle the occasional notification.

Re: Reducing power consumption for background tabs

#19
I'd honestly like to be able to "freeze" a page entirely once it fully appeared in the browser window. A good percentage of web pages both take all my CPU and become unreadable halfway through the page.

A big factors seems to be that the pages that are built out of layers of active advertising devices - a given advertiser isn't concerned that they're one of ten monetizing devices pasted onto a gvien page.

And there's the way pages have disincentive to play nice - a page that barely works with only it open trains users to avoid other pages.

Re: Reducing power consumption for background tabs

#20

How much benefit is there in doing anything at all on a background tab? Would there be many use cases where simply suspending the background tab threads would lead to a much worse user experience? I wouldn't mind having my background Netflix just stop, or having to wait a few secs for an interval refresh after bringing a tab to front. But seeing as this seems an active area of research and debate I have a feeling tha…

Productivity application clients like a spreadsheet or document editor tend to do best when they can receive commands/updates to the document in the background via something like a WebSocket.

Otherwise, each time you switched tabs to your spreadsheet, doc, slide show, etc., it would have to poll for changes from the server in some fashion, and wait for a response. This gets pretty frustrating when you're trying to do something like copy from one document to another.

Post reply on HN