Join Bill Weinman for an in-depth discussion in this video Handling errors, part of HTML5: Background Processes with Web Workers.
- View Offline
Let's just take a look at the file. I'm going to page through this for the people…that are typing it in.…And this one's a little bit longer than some of the other ones have been. And…there is a little bit off to the right here as well.…So that's our starting place. I also have workerFindPrime.js open over here, and…this is the actual worker code that gets loaded up in the worker object.…
So I want to show you this running in the browser and just as it is, if I type in…a number here, say 12345, it'll show me the next prime after that.…
- Deploying a worker
- Detecting browser support
- Communicating with workers
- Understanding API differences in shared workers