Skip to main content

Web Worker

A web worker, as defined by the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG), is a JavaScript script executed from an HTML page that runs in the background, independently of scripts that may also have been executed from the same HTML page. Web workers are often able to utilize multi-core CPUs more effectively. Web worker

Links to This Note


Someday Project. Improved `iframe` that containerizes an embedded web inside Web Worker.


Google's take on providing DOM access to Web Worker Threads.


... Treehouse was the first attempt to run a DOM within a Web Worker. Later affected WorkerDOM and Brane.

Stories Behind Satori

Converting it into WebAssembly|WASM will also benefit by targeting Web Workers.


... engine, Satori, can be used in modern Web Browser|browsers, Node.js, and Web Workers. Building on top of the core engine, Vercel OG can be ...

Providing DOM API to Worker Threads

- Provide synchronous DOM API Access to Web Worker Threads


- [ ] Does Emscripten WebAssembly|WASM run on Web Workers?

Atomics (JavaScript)

- SharedArrayBuffer๋ฅผ ์ด์šฉํ•ด Web Worker ์‚ฌ์ด ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ๋™๊ธฐํ™”ํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ๋จ.


... iiframe โ€” improved iframe โ€” that specializes in containerizing iframes in Web Workers.


- [x] Inside Web Worker Thread `MutationTransfer.ts`, create a `transferSync` layer.


- Inside Web Worker Thread `MutationTransfer.ts`, create a `transferSync` layer.


Web Worker Thread์—์„œ ๋‚˜ํƒ€๋‚œ `AnimationFrame.ts`์€ `requestAnimationFrame`์— ๊ด€๋ จ๋œ ๊ฒƒ์œผ๋กœ ๋ณด์ด๊ณ  Data Transfer๊ณผ๋Š” ๋ฌด๊ด€ํ•ด๋ณด์ธ๋‹ค (๋ถˆํ™•์‹ค).


Give this object to a Web Worker which includes third-party codes.


- WorkerDOM will be an arbiter between the Web Worker thread and the iframe.