2 ms·
Can the tabs share a background worker that would handle that?
by nine_k 3y ago
Can the tabs share a background worker that would handle that?
- merb 3y agoYou can use https://www.npmjs.com/package/broadcast-channel https://www.npmjs.com/package/broadcast-channel which creates a tab leader, no need for a background worker Edit: of course you could use: https://caniuse.com/sharedworkers https://caniuse.com/sharedworkers but android does not support it. We migrated to the lib because safari took its time… so mobile was/is not a thing for us
- nchmy 3y agoHere's the chrome android issue for Shared Workers. Add your voice if it is something you need https://issues.chromium.org/issues/40290702 https://issues.chromium.org/issues/40290702