Vanilla JavaScript: Web Workers

Go to class
Write Review

Free Online Course: Vanilla JavaScript: Web Workers provided by LinkedIn Learning is a comprehensive online course, which lasts for 1-2 hours worth of material. The course is taught in English and is free of charge. Upon completion of the course, you can receive an e-certificate from LinkedIn Learning. Vanilla JavaScript: Web Workers is taught by Maximiliano Firtman.

Overview
  • Optimize your web applications with JavaScript web workers. Learn how to enable multithreading with dedicated and shared web workers.

    Web Workers is one of the most underrated APIs on the web. It brings multithreading—the ability to execute multiple tasks simultaneously—to JavaScript. Multithreading with web workers can enhance the performance of complex apps with resource-intense code. This course show how to run parallel tasks with web workers and communicate those threads back to the main UI thread. Instructor Maximiliano Firtman explores the APIs for dedicated web workers and shared web workers, which allow you to share threads between browser tabs. The majority of the lessons use Vanilla JavaScript, which allows you to explore the full potential of the technology, but in the final chapter, Maximiliano also introduces some libraries and frameworks specifically designed for developing with web workers.

Syllabus
  • Introduction

    • Increase web performance with web workers
    • What you should know
    1. Threading in JavaScript
    • The problem with JavaScript and threads
    • Execute CPU-intense operations
    • How the browser works with threads
    • The workers family
    2. Working with Web Workers
    • Create a dedicated worker
    • Life cycle of a dedicated worker
    • Create a shared worker
    • Life cycle of a shared worker
    • Creating subworkers
    • Import external scripts
    • Create basic workers
    • Debug with browser dev tools
    3. Communication and Security
    • Send messages to dedicated workers
    • Improve the performance of our app
    • Update progress and import scripts
    • Send messages to shared workers
    • Copy vs. transferable objects
    • Handle worker errors
    4. Libraries, Frameworks, and Ideas
    • Libraries for web workers
    • Decoding images
    • WorkerDOM project
    • OffscreenCanvas
    Conclusion
    • Next steps