offline
Without a working network connection; an offline-capable web app keeps working from local data and caches.
In more detail
The navigator.onLine property and the online and offline events give a rough signal of connectivity. Service workers, Cache Storage, IndexedDB and Background Sync together let a site load, show data and queue changes while offline.
Related terms
- service worker — A script the browser runs in the background, separate from pages, that can intercept a site's network requests and act as a programmable proxy.
- Cache Storage API — A browser storage API that saves pairs of Request and Response objects in named caches, usually managed by a service worker.
- Background Sync API — A service worker API that defers a task until the device has a working connection, then fires a sync event to run it, even if the page has been closed.
Taught in
- IndexedDB In Practice: Object Stores, Indexes And Transactions — Frontend Architecture & Web Platform
- Service Worker Lifecycle: Installation, Activation And Update — Frontend Architecture & Web Platform
- Cache Storage API: Offline Strategies And Cache-First Patterns — Frontend Architecture & Web Platform
- Background Sync, Push Notifications And PWA Manifests — Frontend Architecture & Web Platform
- Pinned For Stability: Images, Registries And Code — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep