4 ms·
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 l
by alkonaut 10y ago
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...
- advisedwang 10y agoThere 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.
- r00fus 10y agoSo let the user promote these with pinned tabs. I think that's a reasonable compromise.
- chongli 10y agoBrowsers have notification APIs now, from what I've seen. No need to run a full background tab just to handle the occasional notification.
- apetresc 10y agoThose notification APIs still get triggered by Javascript running in those tabs. As far as I know, there's no equivalent to the mobile notification APIs where there's a single dedicated socket listening to a central server.
- advisedwang 10y agoThere 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.
- bri3d 10y agoProductivity 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.
- mdpopescu 10y agoDuring competitions I sometimes watch two twitch streams in two different tabs, turning just the sound on and off depending on which one is more interesting. (I had up to four open at the same time.)