Topic
Architecture
33articles about Architecture.
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.
Trusted Types API: Production Deployment
Deploy Trusted Types safely: configure default policies, audit indirect DOM sinks, enforce CSP headers, and integrate Vite or Angular builds.
Agent-Ready Architecture: How AI Systems Actually Read the Web
How to make your website AI-ready with clean semantic HTML, Markdown endpoints, JSON-LD, and MCP — covering agent crawlability and discoverability.
Beyond Cookie Banners: Building Privacy-First Analytics at the Edge
How to modernize tracking using server-side tagging, edge middleware, and the Privacy Sandbox while handling modern consent requirements.
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.
Content Security Policy (CSP): Architecting Strict CSP with Nonces and Hashes
How to architect a strict CSP that prevents XSS without breaking edge caches or runtime inline scripts — covering hashes vs. nonces tradeoffs.
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).
Zero-Dependency CSS: Architecture with Native Features
How to use native CSS cascade layers (@layer), custom properties, and modern color functions to architect a zero-dependency design system.
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.
Container Queries: Why the Component, Not the Viewport, Should Decide
Container queries let components respond to their own width rather than the viewport, solving responsive layout issues that breakpoints cannot fix.
Serving Markdown vs HTML to AI Agents: Content Negotiation
Use HTTP Content Negotiation to serve Markdown variants to AI agents, understand the development behind llms.txt, and optimize bot crawling.
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.