3

I tried to implement this code, here is the link. It works in Chrome, whereas in IE 11 it gives an error 'SharedWorker' is undefined. But according to caniuse, WebWorkers are supported in IE 11.

Does anyone know who is right?

TylerH
  • 20,799
  • 66
  • 75
  • 101
SoftTimur
  • 5,630
  • 38
  • 140
  • 292

1 Answers1

3

Web workers are indeed supported in IE 11, but shared workers not. From MDN:

enter image description here

Julian
  • 33,915
  • 22
  • 119
  • 174
  • I see... Do you think we could achieve the same task as [here](https://stackoverflow.com/a/36146764/702977) by `Web Workers` rather than `Shared Web Workers`? – SoftTimur Jun 22 '17 at 20:01
  • What's the goal? Bit unclear from the linked question IMO – Julian Jun 22 '17 at 20:05
  • Why not using Cross-document messaging API? http://caniuse.com/#feat=x-doc-messaging – Julian Jun 22 '17 at 20:07
  • Because it does not work in Excel add-in for Windows: [window.opener returns null](https://stackoverflow.com/questions/44655202/window-opener-does-not-work-in-excel-for-windows). – SoftTimur Jun 22 '17 at 20:09
  • And a Shared Worker would work from the Excel Add-in? – Julian Jun 22 '17 at 20:16
  • As Shared Worker does not work with IE, it is certain that messaging between Excel add-in and IE will not work. – SoftTimur Jun 22 '17 at 20:17