Skip to Content
Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development
book

Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development

by Peter Lubbers, Brian Albers, Frank Salim
August 2010
Intermediate to advanced
304 pages
6h 44m
English
Apress
Content preview from Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development

Chapter 8. Using the HTML5 Web Workers API

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.

Slow script warning in Firefox

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Using the HTML5 Filesystem API

Using the HTML5 Filesystem API

Eric Bidelman
HTML5 Geolocation

HTML5 Geolocation

Anthony T. Holdener
HTML5 Hacks

HTML5 Hacks

Jesse Cravens, Jeff Burtoft
Jump Start HTML5

Jump Start HTML5

Tiffany B Brown, Kerry Butters, Sandeep Panda

Publisher Resources

ISBN: 9781430227908Purchase book