Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/malchata/web-worker-example

An example of web workers in action!
https://github.com/malchata/web-worker-example

Last synced: about 2 months ago
JSON representation

An example of web workers in action!

Awesome Lists containing this project

README

        

# Web worker example

This repo is an example of a web worker in action. The use case is a JPEG fetcher which transforms the response into a blob, then into an `ArrayBuffer`, then the EXIF data is extracted. There are two states denoted by two tags:

1. `without-worker`, which does all this work on the main thread.
2. `with-worker`, which moves the fetching, EXIF extraction, and markup construction into a web worker.

To use this repo, clone, `npm install`, and then spin up the local server via `npm start`. Once the server is started, it will be available at [http://localhost:8080](http://localhost:8080).