image

© Risto Viita/Shutterstock

chapter28

Integrating Web Workers

FOR YEARS, OPERATING SYSTEMS have allowed multiple programs to run at the same time. Today, applications also take advantage of multiple threads of execution to perform concurrent tasks. Using HTML Web workers, webpages can now use similar threads to perform concurrent processing. A webpage might, for example, use a background task to spell-check content or to parse a large collection of JSON data, as you learned about in Chapter 14, “Processing JavaScript Object Notation.” Developers use JavaScript to define the processing a Web worker performs.

Learning Objectives

This chapter introduces ...

Get Introduction to Web Development Using HTML 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.