You could try to use a web worker, but then you run into the problem that they don't have shared memory, so you need to pass data back some other way.
You could try to use a web worker, but then you run into the problem that they don't have shared memory, so you need to pass data back some other way.