Answer
What is the app shell architecture?
The app-shell architecture separates a PWA into two parts: a minimal "shell" of static UI (navigation, layout, styles) that a service worker caches and loads instantly on repeat visits, and dynamic content fetched separately from the network. This makes the app feel instant even before data loads.
Why it matters
By precaching the shell, the second visit renders navigation and layout from cache with near-zero latency, while content streams in afterward.
How it is built
The service worker precaches shell assets at install time using the Cache Storage API, then serves them cache-first while using network-first or stale-while-revalidate for content.
Trade-offs
App-shell works best for app-like, single-page interfaces; it is less useful for content sites where every page is mostly unique, unique content.