https://github.com/ellbur/scalajs-webworker-test
In case you were curious.
The biggest disadvantage of webworkers is that, at least, Chrome browser does not consider functions to be translatable from one webworker to another.
This in theory should be possible, as a function can be represented as code+environment, and both of these are by themselves translatable.