Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/malchata/web-worker-example
- Owner: malchata
- License: mit
- Created: 2020-11-29T00:11:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-29T04:23:42.000Z (about 4 years ago)
- Last Synced: 2024-10-15T13:41:02.779Z (3 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
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).