Во, mozilla говорит, что через message passing:
> The worker thread can perform tasks without interfering with the user interface.
> workers run in another global context that is different from the current window
> The magic of workers happens via the postMessage() method and the onmessage event handler. When you want to send a message to the worker, you post messages to it like this (main.js).