August 2010
Intermediate to advanced
304 pages
6h 44m
English
HTML5 Web Workers provide background processing capabilities to web applications and typically run on separate threads so that JavaScript applications using HTML5 Web Workers can take advantage of multicore CPUs. Separating long-running tasks into HTML5 Web Workers also avoids the dreaded slow-script warnings, shown in Figure 8-1, that display when JavaScript loops continue for several seconds.

Figure 8.1. Slow script warning in Firefox
As powerful as HTML5 Web Workers are, there are also certain things they cannot do. For example, when a script is executing inside an HTML5 Web Worker it cannot access the ...