Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/markbrown4/webworker-fallback
- Owner: markbrown4
- Created: 2016-02-11T19:05:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-12T04:32:20.000Z (almost 9 years ago)
- Last Synced: 2023-03-26T17:13:31.927Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- 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
```