Service Workers + WebAssembly
summary
Concrete demo: a service worker fetches .webp, runs a compiled WebAssembly decoder (via Emscripten), copies decoded RGBA out of the WASM heap and returns a generated BMP/PNG blob so browsers without native WebP render the image. Problems: off‑screen canvas APIs differ and crash in Firefox, many memory copies add overhead, and workers can be killed so modules must be reloaded. The prototype works in Chrome and in Firefox with caveats.
AI-written summary · about
chapters (11)
- 0:00Start
- 3:21Webassembly
- 4:05Common Misconceptions about Web Assembly
- 6:57Google Earth
- 8:30What Is Web P
- 9:46M Script
- 10:58First Javascript Code
- 14:12Approach
- 15:03Off-Screen Canvas
- 24:37Serviceworker
- 25:50Generate a Library in C
related talks
21mOn the fly WebP decoding with Web Assembly and Service Workers (Main Stage)
27mWebAssembly for Performant Interactivity
29mWeb Assembly, the Future of JS, and a multi-language web
28mWebAssembly: Of Portability, and Performance
32mWebAssembly for Front End Devs
02h 58mWebassembly: Expectation vs. Reality
16mWhy WebAssembly
19mBringing Adobe's Creative Cloud to the web: Starting with Photoshop
