~/talk

PWA patterns for window and service worker communication

Talkat Chrome Dev Summit 2020 · 2020-12-09..12-10· [pwa, web-platform]
links:none on file
links:none on file
slides:none on file

Explains concrete patterns: use postMessage plus BroadcastChannel (not yet in Safari) to broadcast updates, use the Clients API to message the Last Focused tab or iterate all clients, or establish a dedicated two‑way pipe with MessageChannel. Shows real apps: 1-800-Flowers prefetches the top 10 product JSONs via service worker; Squoosh runs two web workers to parallelize image optimizations; Proxx offloads game state; Tinder surfaces an “update” button when a new service worker activates; podcasts and background fetch keep large downloads alive off the main thread.

AI-written summary · about

  1. 0:00Intro
  2. 6:18Communication with web workers
  3. 13:50Window to Service Worker
  4. 14:24PostMessage API
  5. 15:15PostMessage Example
  6. 17:08Service Worker to Window Communication
~/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.