javascript - Can I load AMD modules inside a webworker? -


I am trying to make web computing to make my computationally heavy javascript really parallel. However, I have a problem that all my Javascript files are AMD modules Can I use the requirements within my webworker? how?

In web workers, can be loaded using other scripts. It shows that web workers are also supported:

  // line 23: isWebWorker =! Broser & amp; Amp; Types of Import! == 'Undefined', // line 1877:} and if (hvware) {// use a web worker, import it is not a very efficient / efficient use of import code, as long as its script is downloaded and As far as evaluation is concerned, import is being done. However, if the Web Manager // is in the game, then it is expected that one has been built so that // should only load one script. If other use cases become normal, then it can be re-evaluated // importScripts (url);    

Comments