3 ms·
Is this compatible with non-worker-ready browsers?
Is this compatible with non-worker-ready browsers?
Doesn't look like it. Clicking "Try It" does nothing, so I guess it has no single-threaded fallback.
You need a way to spawn threads. There may be a way to implement this in the main browser event loop but I have yet to think of a way.