2 min read
Why the support for WebAssembly threads is needed?
Earlier, parallelism in browsers was supported with the help of web workers. The downside of web workers is that they do not share mutable data between them. Instead, they rely on message-passing for communication.
How you can try this support
To test the WebAssembly module you need to turn on the experimental WebAssembly threads support in Chrome 70 onwards:
- First, navigate to the chrome://flags URL in your browser:
- Next, go to the experimental WebAssembly threads setting:
- Now change the setting from Default to Enabled and then restart your browser:
The aforementioned steps are for development purposes. In case you are interested in testing your application out in the field, you can do that with origin trial. Original trials allow you to try experimental features with your users by obtaining a testing token that’s tied to your domain.
You can read more in detail about the WebAssembly thread support in Chrome 70 on the Google Developers blog.