Join Bill Weinman for an in-depth discussion in this video Reviewing a shared workers example, part of HTML5: Background Processes with Web Workers.
Now, let's take a look at an application that uses a shared worker for a number…of different pages and frames.…It's worth noting that, at least with the current versions as of this…recording, this will not work in Firefox, and it will not work on a local…file; it must be run from a server.…So I am running these from my server. You will need your own server to run your examples.…So we are looking at the exercise files in Chapter 3, and you notice I've got…three files here. I am going to click on the one that says workerSharedMain,…and it has iframes in it, and it has this workerSharedFrame.html running in…each of the iframes.…
So let's take a look.…Now, each of these little boxes here is a separate iframe, and so each of…those is actually a separate web page, and it's running in its own little…sandbox here in Chrome.…In the outer page, you will see the status message here that says that A is…stopped and B is stopped and C is stopped.…So for example, if I start one of them, and I press the Start button here in…
Released
1/9/2012- Deploying a worker
- Detecting browser support
- Communicating with workers
- Understanding API differences in shared workers
Share this video
Embed this video
Video: Reviewing a shared workers example