3 ms·
You can use a SharedWorker now instead of picking a tab to do that work (and failing over to another tab if it gets closed). Support is still spotty though.
by remram 2y ago
You can use a SharedWorker now instead of picking a tab to do that work (and failing over to another tab if it gets closed). Support is still spotty though.
- EGreg 2y agoWell, you can just use a service worker, instead of broadcast channels or shared workers. They have all the functionality you need, now. Any iframe that loads in a secure context and itself creates a secure context, can load a service worker for its domain or subdomain or path.