Topic
Performance
23articles about Performance.
CSS Anchor Positioning: How Resolution, Scroll, and Fallbacks Actually Work
The mechanics behind anchor-name, position-anchor, anchor(), and position-area — covering multi-anchor layout and scroll-container fallbacks.
Declarative Shadow DOM: The Parts That Only Show Up After You Ship It
Declarative Shadow DOM parser rules, streaming serialization edges, adoptedStyleSheets timing, and SSR quirks that surface in production.
Resource Hints: fetchpriority, modulepreload, and When preload Makes Pages Slower
How fetchpriority, preload, and modulepreload affect browser resource loading — covering failure modes and when premature preloads harm performance.
Interaction to Next Paint (INP): Diagnosing and Optimizing Main Thread Blocking
Understand how to optimize Interaction to Next Paint (INP) by yielding to the main thread, debugging long tasks, and architectural changes.
WebAssembly and Web Workers: Off-Main-Thread Architecture for Frontend Heavy Lifting
Architectural patterns for keeping the main thread responsive by offloading heavy CPU computation to Web Workers and WebAssembly (Wasm).
light-dark() and color-mix(): Theming Without a Flash, Without JavaScript
JS-based theme toggles cause a flash of the wrong theme on load, distinct from FOUC. light-dark() plus color-mix() fix it without a build step.
CSS Containment & Content-Visibility: Rescuing the Main Thread
How contain and content-visibility: auto isolate layout and paint for large DOMs — covering INP impact and main-thread performance optimization.
Zero-Latency i18n: Language Negotiation at the Edge
How CDN edge routing parses Accept-Language headers without Geo-IP redirect round-trips — covering latency impact and Core Web Vitals preservation.
View Transitions on MPAs: SPA-Feeling Navigation Without a Router
Same-document View Transitions reached Baseline across browsers. Cross-document transitions remain Chromium-only — covers testing before deploy.
Native Web Components vs Hydration: What customElements.define() Buys You
The hydration uncanny valley delays interaction. Native custom elements eliminate framework overhead for isolated widgets on modern web pages.
Zero-Jank Scroll: Getting Animation Off the Main Thread
Scroll-driven animations run on the compositor in pure CSS, eliminating main-thread jank from event listeners via modern view() and scroll() syntax.