/workers

👷‍♀️ Web Workers workshop. 👷‍♂️ Service Workers examples.

Primary LanguageJavaScript

Web and Service Workers

This repository contains both a workshop on Web Workers as well as various examples of both Web Workers and Service Workers.

Workshop: Web Workers

Click here for workshop instructions.

Examples: Web Workers and Service Workers

Each example is self-contained. Simply enter the directory of your choice and install the dependencies (npm i or yarn).

Web Worker Examples

  • Simple post message: src | dist
  • Post message to multiple workers: src | dist
  • Bundled Web Worker: src | dist

Service Worker Examples

  • Simple Service Worker: src | dist
  • Service Worker Lifecycle: src | dist
  • Workbox Service Worker: src | dist