~/talk

Leveraging Stream API within Service Worker

Talkat NDC Oslo 2021 · 2021-11-29..12-03· [web-platform, web-performance]
slides:none on file

Demo shows streaming a grayscale PNG transformer and chunked JSON parser that process a 10 MB JSON over fetch using Response.body as a readable stream and piping through a TransformStream to avoid blocking the UI thread. Service Worker constructs a streamed Response, precaches header/footer with Workbox Streams and sends cached shell immediately while dynamic content arrives from network, cutting first-contentful-paint and parsing progressively rather than waiting for full download.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Stream API
  3. 1:41About Stream API
  4. 2:32Core Concepts
  5. 4:02Fetch
  6. 6:42Parse JSON
  7. 7:47Create Stream
  8. 8:32Create Option
  9. 10:08Precache
  10. 10:28Continuous strategy
  11. 11:36Summary
  12. 12:34Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.