Browsers behind your back
summary
Demonstrates that a Service Worker can queue POSTs into an IndexedDB outbox, register a Background Sync API tag, and then wake to fetch each stored message to a server and delete it on success — enabling reliable send-when-back-online behavior (demo sends SMS via Twilio). Shows actual code: register sync on form submit, service worker handles sync event with waitUntil and fetch + outbox deletion. Notes browser support (Chrome, Samsung; Firefox/Edge in progress) and future Periodic Sync API.
AI-written summary · about








