Three demos showing off web workers:
- basic.html - A simple dedicated web worker.
- inline.html - Showing how you can use inline JS to power a dedicated worker. Good if you minify
- shared.html - Simple example of a shared worker. Open two tabs and watch how the worker interacts with both
Serve up the root of the project with your favorite static web server and you are off and running!
Node.js
npm install http-server -g
http-server -p 8080
Python
python -m SimpleHTTPServer 8080