https://github.com/markbrown4/webworker-fallback
Single thread fallback if (!window.Worker)
https://github.com/markbrown4/webworker-fallback
Last synced: 19 days ago
JSON representation
Single thread fallback if (!window.Worker)
- Host: GitHub
- URL: https://github.com/markbrown4/webworker-fallback
- Owner: markbrown4
- Created: 2016-02-11T19:05:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-12T04:32:20.000Z (over 9 years ago)
- Last Synced: 2025-06-25T18:05:10.587Z (19 days ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```