Beyond The Tab: Executing JavaScript Across Browser Contexts
summary
A practical tour of cross‑context JS: swapping fragile cookie polling for localStorage (watch for Safari private‑browsing’s zero‑quota and keep a cookie fallback), nine lines can coordinate YouTube tabs, SharedWorkers let tabs share a WebSocket but Safari dropped support, ServiceWorkers run outside pages and handle push/sync/fetch events, push needs vendor push services, sync registers tags for background retries, fetch gives programmatic cache control, lifecycle requires HTTPS and may be terminated frequently so use skipWaiting and idempotent handlers.
AI-written summary · about
chapters (15)
- 0:00Intro
- 1:25Background
- 3:41Standard Browser API
- 5:42Contexts
- 10:45Shared Workers
- 13:28Service Workers
- 16:20Ask FSM
- 16:38Push Event
- 18:08Notification Service
- 20:42Push Service
- 21:23Sync Event
- 23:43Life Cycle
- 24:17Browser Support
- 24:42Fetch
- 28:44Service Worker Limitations
related talks
28mThe App-Changing Magic (and Joy) of Web APIs
41mCross browser extensions – lets make one
38mThe Mysterious Life of Web Apps in the Background
22mFearless Concurrency with JavaScript and Beyond
58mWeb Apps can’t really do *that*, can they?
01h 13mWeb: The good parts
30mThe Beauty of Service Workers
50mMost useful browser APIs
