8 ms·
I've never worked with Web Workers, but the doc page mentions them at the very top. Isn't that the intended workaround? Have a background thread that receives t
by flaviut 3y ago
I've never worked with Web Workers, but the doc page mentions them at the very top. Isn't that the intended workaround? Have a background thread that receives the events & coordinates, rather than having each page deal with them?
- silverwind 3y agoYes, that's `ShardedWorker`.
- nikeee 3y agoI wanted so use these in a project recently, only to find out that they aren't supported on Chrome for Android. This makes them non-usable for me, since there is no drop-in polyfill available yet.
- silverwind 3y agoIf you are doing websocket in there, you could fall back to main thread, but it comes at the cost of code duplication.