Topic notes
Web platform
Native UI, progressive enhancement, and frontend payload choices for the web platform.
For frontend developers diagnosing loading and interaction problems. Start with HTTP caching and page payload, then follow the browser API notes below; keep fallbacks usable without the enhancement.
Topic notes
The site is deployed. Why am I still seeing the old version?
Follow a response through browser and CDN caches, understand s-maxage and validators, and connect fingerprinted JavaScript to the HTML that actually requests it.
CORS from scratch: separate request delivery, cookies, and response access
A practical guide to origins, OPTIONS preflights, fetch credentials, cookies, Allow and Expose headers, and browser debugging. Understand why an API can finish while JavaScript cannot read its response.
Your SSR Data Is Part of the Page Weight
SSR can improve first paint and SEO, but hydration JSON and RSC payloads still travel and parse. Here is a practical Next.js measurement and reduction order.
IntersectionObserver: visibility, loading, and virtualization are separate jobs
Learn root, rootMargin, threshold, initial notifications, and observer cleanup with small JavaScript examples. Separate infinite-scroll request control from virtualization and its DOM budget.
ResizeObserver basics: element sizes, boxes, and update boundaries
An element can shrink without the viewport changing. Use a runnable JavaScript example to understand ResizeObserver, content and border boxes, logical axes, hidden elements, cleanup, and resize feedback loops.
AbortController: Cancel Stale Work, Not Every Error
AbortController stops work a person has superseded, but cancellation, timeouts, HTTP failures, and server-side effects need different handling. Put controller ownership in the right place first.
A retry is not a second attempt: the real boundaries of API idempotency keys
A timeout is not proof of failure. Use operation keys, parameter binding, atomic records, bounded retries, and an outbox to prevent duplicate side effects.
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.
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.
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.
<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.
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.
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.
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.
Don't block first: use CSP Report-Only to find real dependencies, then tighten safely
CSP Report-Only is not a pause in security. It reveals real dependencies, noise, and legacy code patterns before a nonce-, hash-, and least-privilege policy reaches production.