Performance
Published
Core Web Vitals measure a PWA’s loading, responsiveness, and visual stability. View Transitions lets you animate between views, while Speculation Rules lets you prerender likely next pages. Service-worker caching makes repeat visits load instantly, helping the PWA feel like an app.
In this section
Section titled “In this section”Core Web Vitals (LCP, INP, and CLS)What LCP, INP, and CLS measure, the 2.5 s, 200 ms, and 0.1 thresholds at the 75th percentile, which engines expose each entry, and the levers a PWA has.
View Transitions APIHow document.startViewTransition() snapshots the DOM and animates to the new state, the ViewTransition promises, the @view-transition rule, and engine support.
Speculation Rules APIThe speculationrules JSON that asks the browser to prefetch or prerender likely next pages, its eagerness levels, Chrome's limits, and Chromium-only support.
The app shell modelHow the app shell architecture separates the precached UI chrome from per-route content, the cache cleanup it needs, and its trade-off against server rendering.
Back/forward cache (bfcache)How the back/forward cache restores a whole page from memory, which listeners and headers make a page ineligible, and how notRestoredReasons reports why.
Code splitting with dynamic import()How dynamic import() splits a PWA's JavaScript into chunks loaded on demand, what route, component, and vendor splits save, and where import() is forbidden.
Font and image optimizationHow font-display and size-adjust control text during a font load, how loading, fetchpriority, and picture control image fetches, and AVIF and WebP support.
Lighthouse after the PWA categoryHow to run Lighthouse audits after the PWA category removal, preserve useful reports in CI, and check install prompting separately.
Navigation preload and service worker boot timeWhy a service worker's boot time adds to Time to First Byte on navigations, how navigation preload overlaps the request with it, and when it does not help.
Precaching strategiesHow precaching fills Cache Storage with a build-time list of shell assets at install, why each entry needs a revision or hashed URL, and how Workbox does it.
Resource hints (preload and preconnect)What link rel=preload, preconnect, modulepreload, and prefetch each start early, the as and crossorigin rules that avoid a double fetch, and Chrome's warning.
PerformanceObserver and paint timingHow PerformanceObserver delivers paint, largest-contentful-paint, and navigation entries, which engines report which, and what buffered and workerStart mean.
Service worker startup and fetch overheadHow a stopped service worker delays fetch handling, how to measure its navigation timing, and when preload or removing a no-op handler avoids the cost.
← Back to the Reference overview.