< Back to notes

Browse 7 notes tagged progressive enhancement.

#progressive enhancement

Navigation API: A Router Primitive, Not an SPA Mandate

The Navigation API centralises SPA navigation, but only intercept same-origin GETs your app can safely finish. Leave forms, downloads, hash links, external destinations, and unsupported browsers to ordinary navigation.

Speculation Rules: Faster Navigation Must Not Do Things Early

Speculation Rules can speed up the next MPA navigation, but prefetch and prerender have very different costs. Exclude side-effecting URLs, preserve ordinary navigation, then use activation and hit rate to decide whether to expand.

Browser Scheduler: Classify Work Before You Queue It

Scheduler gives the browser a priority hint; it is not a background thread. Keep short UI work synchronous, then choose postTask, yield, or a Web Worker from measured evidence.

<details> Is Disclosure, Not an Accordion System

Native details already handles toggling and keyboard interaction. name can create exclusive panels, but only when that matches content semantics and safe fallback behavior.

Popover API: Less UI State, Not Free Accessibility

Native Popover can replace some toggle, click-outside, and z-index code. It remains non-modal UI, so it cannot choose semantics, content, or product flow for you.

Native CSS Carousels Are an Enhancement, Not a Rewrite

CSS Overflow 5 can generate carousel buttons and markers, but it is not Baseline yet. Start with a semantic list, scroll snap, and progressive enhancement before removing JavaScript.

View Transitions Make MPAs Smoother, Not SPAs

The View Transition API now covers same-document state changes and page navigation. Here is the minimal approach to fallbacks, shared elements, and reduced motion.