Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/markbrown4/webworker-fallback

Single thread fallback if (!window.Worker)
https://github.com/markbrown4/webworker-fallback

Last synced: about 2 months ago
JSON representation

Single thread fallback if (!window.Worker)

Awesome Lists containing this project

README

        

# WorkerProxy

extracted from @colingourlay's [duet](https://github.com/colingourlay/duet)

`src/entry.js` shows how you can split work across the main thread and a background thread if WebWorkers are supported. If not, both run in the main thread.

Change `forceSingleThread` in `entry.js` to test fallback without workers.

```bash
npm install
npm run build
npm run server
```