5 ms·
There are web APIs which suggest they guarantee this. How are you supposed to get notifications you opted into if closing the tab turns off its network access?
by eyelidlessness 6y ago
There are web APIs which suggest they guarantee this. How are you supposed to get notifications you opted into if closing the tab turns off its network access? Stuff that happened in your local tab as a ghost?
Edit: for real though if you’re using chrome or any equivalent browser with its own internal task manager, go on into it and kill everything except the parent task as often as you like. It’s great.
- wolfgang42 6y agoNotifications aren’t done by the browser holding open a socket to individual sites; there’s a somewhat complicated protocol involving a service run by the browser manufacturer. I’m not aware of any web APIs that explicitly require the browser to hold idle connections alive in a socket pool (server-sent events/websockets are a different matter; but they involve an active worker of some description—and last I knew weren’t available in service workers); this is purely a performance optimization.
- eyelidlessness 6y agoI’m sincerely sorry that I so poorly formulated the joke.