3 ms·
> The Web Workers API allows your JS code to keep running in the background even when your site is not loaded in any tab. How? Because last I checked Web Worke
by afavour 5y ago
> The Web Workers API allows your JS code to keep running in the background even when your site is not loaded in any tab.
How? Because last I checked Web Workers are only active when there is an active tab. Service Workers live a little longer than that but only around 30 seconds or so last time I looked in Chrome (and that’s an implementation detail, not something in the spec), unless the user has enabled push events and you send one.