LAUNCH A WEB WORKER EVENT FROM YOUR WEB APPLICATION

After you have a worker and parent JavaScript code set up, you can launch the Web Worker process in your web application.

It is important to note at this stage what to expect from Web Workers. They will not automatically access new system resources, better utilize extended or expanded memory, or make your web browser 100% crash safe. In fact, they will make debugging using tools such as the Chrome Inspector impossible to use as no direct interaction with the rendered web browser itself is allowed. You are kind of working in a black-painted room with the lights out.

Web Workers’ sole purpose is to move your CPU-intensive code into a different JavaScript thread, outside the main-line user interface, ...

Get HTML5: Your visual blueprint™ for designing rich web pages and applications 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.