Web Workers: Multithreaded Programs in JavaScript
Web apps would run much better if heavy calculations could be performed in the background, rather than compete with the user interface. With this book, you’ll learn how to use Web Workers to run computationally intensive JavaScript code in a thread parallel to the UI. Yes, multi-threaded programing is complicated, but Web Workers provide a simple API that helps you be productive without the complex algorithms.

If you have an intermediate to advanced understanding of JavaScript—especially event handling and callbacks—you’re ready to tackle Web Workers with the tools in this example-driven guide.

  • Start creating Web Workers and understand what they can and can’t do
  • Determine which browser versions support the API
  • Use dedicated Web Workers for tasks that consume a lot of CPU, such as data parsing
  • Explore use cases for creating inline Workers, such as encapsulating a web app in one page
  • Create a shared Worker to communicate multiple web app instances to the server, and other uses
  • Learn best practices for debugging Web Workers
  • Apply Web Workers within the server-side Node environment
1110867008
Web Workers: Multithreaded Programs in JavaScript
Web apps would run much better if heavy calculations could be performed in the background, rather than compete with the user interface. With this book, you’ll learn how to use Web Workers to run computationally intensive JavaScript code in a thread parallel to the UI. Yes, multi-threaded programing is complicated, but Web Workers provide a simple API that helps you be productive without the complex algorithms.

If you have an intermediate to advanced understanding of JavaScript—especially event handling and callbacks—you’re ready to tackle Web Workers with the tools in this example-driven guide.

  • Start creating Web Workers and understand what they can and can’t do
  • Determine which browser versions support the API
  • Use dedicated Web Workers for tasks that consume a lot of CPU, such as data parsing
  • Explore use cases for creating inline Workers, such as encapsulating a web app in one page
  • Create a shared Worker to communicate multiple web app instances to the server, and other uses
  • Learn best practices for debugging Web Workers
  • Apply Web Workers within the server-side Node environment
19.99 In Stock
Web Workers: Multithreaded Programs in JavaScript

Web Workers: Multithreaded Programs in JavaScript

by Ido Green
Web Workers: Multithreaded Programs in JavaScript

Web Workers: Multithreaded Programs in JavaScript

by Ido Green

Paperback

$19.99 
  • SHIP THIS ITEM
    In stock. Ships in 1-2 days.
  • PICK UP IN STORE

    Your local store may have stock of this item.

Related collections and offers


Overview

Web apps would run much better if heavy calculations could be performed in the background, rather than compete with the user interface. With this book, you’ll learn how to use Web Workers to run computationally intensive JavaScript code in a thread parallel to the UI. Yes, multi-threaded programing is complicated, but Web Workers provide a simple API that helps you be productive without the complex algorithms.

If you have an intermediate to advanced understanding of JavaScript—especially event handling and callbacks—you’re ready to tackle Web Workers with the tools in this example-driven guide.

  • Start creating Web Workers and understand what they can and can’t do
  • Determine which browser versions support the API
  • Use dedicated Web Workers for tasks that consume a lot of CPU, such as data parsing
  • Explore use cases for creating inline Workers, such as encapsulating a web app in one page
  • Create a shared Worker to communicate multiple web app instances to the server, and other uses
  • Learn best practices for debugging Web Workers
  • Apply Web Workers within the server-side Node environment

Product Details

ISBN-13: 9781449322137
Publisher: O'Reilly Media, Incorporated
Publication date: 06/07/2012
Pages: 58
Product dimensions: 6.80(w) x 9.00(h) x 0.30(d)

About the Author

Ido is a Developer Advocate for Google Chrome OS. He has been a developer and building companies for more then 15 years. He still likes to develop web applications, but only ones with amazing UX. He has a wide array of skills and experience, including Java, php, perl, JavaScript—and all aspects of agile development and scaling systems.

Table of Contents

; Preface; How This Book Is Organized; Who This Book Is For; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1: Overview; 1.1 What Can Web Workers Do?; 1.2 Creating a Worker; 1.3 What Web Workers Can and Can’t Do; 1.4 Worker Execution; 1.5 Web Workers API Browser Availability; Chapter 2: How and Where Can We Use Web Workers?; 2.1 Loading External Scripts; Chapter 3: Dedicated Workers; 3.1 Control Your Web Workers; 3.2 Parsing Data with Workers; 3.3 Transferable Objects; Chapter 4: Inline Workers; Chapter 5: Shared Workers; Chapter 6: Debug Your Workers; 6.1 Debugging in Chrome Dev Tools; Chapter 7: Web Workers Beyond the Browser: Node; 7.1 Processes; 7.2 Communications; 7.3 Message Format; 7.4 Code; 7.5 API; 7.6 Additional Resources;
From the B&N Reads Blog

Customer Reviews