O'Reilly logo

HTML5 Web Application Development By Example Beginner's guide by J.M. Gustafson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter we created an application to draw Mandelbrot fractals to learn how to use HTML web workers to execute long running processes in a background thread. This allowed the browser to remain responsive and accept user input while generating the image.

We covered the following concepts in this chapter:

  • How to use web workers to make web applications more responsive
  • How to create a web worker and start it
  • How to send messages and data between the main thread and the web worker
  • How to draw a Mandelbrot using a web worker
  • How to catch errors thrown from a web worker
  • How to debug web workers

In the next and final chapter we will learn how to prepare a web application for release by combining and compressing its JavaScript files. This will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required