# frontend.rocks > Interactive frontend engineering knowledge graph: browser internals, problem genealogy, architecture autopsies, and curated technical watch. ## Symptom Triggers (Quick Diagnostic Anchors) - **My z-index: 9999 is ignored**: A parent with transform, opacity < 1, or filter traps child z-index values inside an isolated stacking context. → [HTML](https://frontend.rocks/concepts/css-stacking-context/#production-pitfalls) | [Markdown](https://frontend.rocks/concepts/css-stacking-context.md) - **Scrolling stutters on mobile**: Animating layout properties or over-promoting layers with will-change saturates VRAM and forces main-thread repaints. → [HTML](https://frontend.rocks/concepts/gpu-compositor-layers/#production-pitfalls) | [Markdown](https://frontend.rocks/concepts/gpu-compositor-layers.md) - **A loop freezes the main thread**: Unbounded microtask chains starve the rendering step and block user input until the queue drains. → [HTML](https://frontend.rocks/concepts/event-loop-tasks-microtasks/#under-the-hood) | [Markdown](https://frontend.rocks/concepts/event-loop-tasks-microtasks.md) - **Animations trigger full-page reflows**: Interleaving DOM style writes with geometric reads like offsetHeight forces synchronous Blink layout recalculations. → [HTML](https://frontend.rocks/concepts/layout-thrashing/#production-pitfalls) | [Markdown](https://frontend.rocks/concepts/layout-thrashing.md) - **Back button reloads the entire page**: Attaching unload listeners or holding open locks disqualifies the page from instant Back/Forward Cache snapshots. → [HTML](https://frontend.rocks/concepts/bfcache-navigation/#production-pitfalls) | [Markdown](https://frontend.rocks/concepts/bfcache-navigation.md) - **Click handler fires on the wrong element**: Capture, bubbling, and Shadow DOM event retargeting alter target vs currentTarget along the composed path. → [HTML](https://frontend.rocks/concepts/dom-event-propagation/#under-the-hood) | [Markdown](https://frontend.rocks/concepts/dom-event-propagation.md) ## Production Symptom Hubs - [My z-index: 9999 is ignored behind a sticky header](https://frontend.rocks/symptoms/z-index-ignored/): A parent with transform, opacity < 1, will-change, or filter creates an isolated stacking context that traps child z-index values inside its subtree. (Signature: Computed z-index: 9999, yet element paints underneath sibling with z-index: 10 (isolated stacking context via transform/opacity/filter)) - [Scrolling stutters at 11 FPS on mobile and kills the tab](https://frontend.rocks/symptoms/mobile-scroll-stutter/): Animating layout properties or over-promoting cards with will-change saturates mobile VRAM and forces main-thread rasterization on every scroll tick. (Signature: DevTools Layers panel > 400 MB GPU memory; Performance trace shows Paint + Composite Layers > 35 ms per frame) - [An async loop freezes the browser main thread completely](https://frontend.rocks/symptoms/main-thread-freeze/): Unbounded Promise/microtask chains starve the rendering step between macrotasks and block all user input until the microtask queue drains. (Signature: Long Task > 5000 ms; DevTools Performance shows continuous Microtask Checkpoint draining with zero Paint frames) - [UI updates trigger full-page forced synchronous reflows](https://frontend.rocks/symptoms/forced-layout-reflow/): Interleaving DOM style writes with geometric reads such as offsetHeight or getBoundingClientRect forces synchronous Blink layout recalculations. (Signature: DevTools Performance warning: "Forced reflow is a likely performance bottleneck" inside Recalculate Style + Layout) - [Browser Back button reloads the entire page from scratch](https://frontend.rocks/symptoms/back-button-reload/): Attaching unload listeners, sending Cache-Control: no-store, or holding open IndexedDB locks disqualifies the page from instant Back/Forward Cache snapshots. (Signature: DevTools Application > Back/forward cache: NotRestoredReasons = ["unload-handler"] or Cache-Control: no-store) - [Click handler fires on the wrong element or misses Shadow DOM target](https://frontend.rocks/symptoms/wrong-click-target/): Capture, bubbling, and Shadow DOM event retargeting alter event.target versus event.currentTarget along the composed path. (Signature: event.target !== event.currentTarget; Shadow DOM event.target retargeted to host element outside shadow root) - [Rapid double-click charges the user twice despite disabled button](https://frontend.rocks/symptoms/double-payment-race-condition/): Asynchronous React state updates lag behind synchronous DOM click dispatch, allowing duplicate mutations unless guarded by state machines and idempotency keys. (Signature: Network tab shows 2 concurrent POST /checkout requests within 12 ms before React state flush disables the submit button) - [SPA dashboard climbs to 2.4 GB RAM and crashes with Aw, Snap!](https://frontend.rocks/symptoms/spa-memory-leak-oom/): Long-lived event listeners, uncleaned MutationObservers, and stale hook closures retain detached DOM subtrees across route transitions until V8 hits the heap limit. (Signature: DevTools Memory Heap Snapshot shows growing Detached HTMLDivElement retainers and uncancelled AbortController/Observer closures) - [Single filter click freezes UI for 180+ ms INP with visible CLS jump](https://frontend.rocks/symptoms/inp-long-task-on-click/): Cascading custom property invalidations and synchronous Virtual DOM reconciliation combine with layout thrashing to blow past the 200 ms INP budget. (Signature: Web Vitals INP > 200 ms (Processing Duration > 140 ms) + CLS > 0.1 during synchronous state commit and layout read) - [ChunkLoadError or corrupt IndexedDB state after a production deploy](https://frontend.rocks/symptoms/chunk-load-error-after-deploy/): Cached HTML shells or waiting Service Workers reference old hashed JS chunks removed on the CDN, breaking lazy imports and client schema expectations. (Signature: Uncaught ChunkLoadError: Loading chunk 42 failed (404) / Failed to fetch dynamically imported module) - [SSR page flickers on load and wipes typed text in form inputs](https://frontend.rocks/symptoms/hydration-mismatch-input-wiped/): Divergent server/client trees trigger React hydration bailout, discarding SSR DOM nodes and resetting any user input entered before JS finished booting. (Signature: Warning: Text content did not match. Server vs Client / Hydration failed because the initial UI does not match what was rendered on the server) - [100% of unit tests pass in JSDOM while mobile dropdown fails in prod](https://frontend.rocks/symptoms/green-ci-broken-prod-dropdown/): JSDOM stubs layout geometry, passive touch listeners, and compositor hit-testing, masking real browser failures until tested in an actual engine. (Signature: Vitest/Jest JSDOM suite green; Safari/Chrome mobile throws Unable to preventDefault inside passive event listener or misses hit-testing) - [Offline edit silently overwrites teammate changes on reconnect](https://frontend.rocks/symptoms/offline-sync-data-overwrite/): Naive offline mutation replay without causal vector clocks, CRDTs, or cross-tab Web Locks clobbers concurrent edits once connectivity returns. (Signature: IndexedDB VersionChange / Last-Write-Wins PUT overwrites server revision without conflict detection or CRDT merge) - [Opening multiple tabs exhausts WebSocket limits and freezes UI](https://frontend.rocks/symptoms/websocket-multi-tab-storm/): Without cross-tab leader election and Worker-offloaded stream backpressure, every open tab duplicates realtime sockets and main-thread parsing. (Signature: 8x duplicate wss:// connections per browser; 400 msg/s JSON.parse bursts saturate main thread at > 95% CPU) - [Third-party script injects inline XSS via innerHTML sink](https://frontend.rocks/symptoms/third-party-xss-exfiltration/): Unsanitized DOM sinks and prototype pollution allow compromised third-party widgets to execute arbitrary scripts unless locked down by Trusted Types and strict CSP. (Signature: SecurityPolicyViolation / TypeError: This document requires TrustedHTML assignment on Element.innerHTML) - [Sorting 100k table rows drops the UI to 4 FPS on the main thread](https://frontend.rocks/symptoms/large-grid-sort-blocks-ui/): Moving heavy sorting and persistence off the main thread into Dedicated Workers with Transferable TypedArrays and OPFS eliminates UI frame drops. (Signature: Long Task > 250 ms during Array.prototype.sort; structuredClone serialization spikes GC pause time) - [Web font swap causes sudden text jump and high CLS score](https://frontend.rocks/symptoms/cls-font-swap-layout-shift/): Late-discovered web fonts with mismatched metric overrides resize line boxes when swapping in, causing measurable Cumulative Layout Shift. (Signature: Web Vitals CLS > 0.1; Performance Layout Shift record attributed to @font-face swap from fallback sans-serif) - [API request fails with CORS preflight OPTIONS 403 or missing header](https://frontend.rocks/symptoms/cors-preflight-blocks-request/): Non-simple headers or methods trigger a mandatory OPTIONS preflight that fails when the server omits Access-Control-Allow-* or mishandles credentials. (Signature: Access to fetch at ... has been blocked by CORS policy: Response to preflight request does not pass access control check) - [Async callback or interval reads stale React state after update](https://frontend.rocks/symptoms/stale-closure-reads-old-state/): Closures capture the lexical environment of the render in which they were created, reading outdated bindings when effects omit dependencies or refs. (Signature: Logged state value inside setInterval/addEventListener stays stuck at initial render value despite subsequent setState calls) - [height: 100vh overflows behind mobile browser address bar](https://frontend.rocks/symptoms/mobile-100vh-cuts-off-toolbar/): Classic 100vh maps to the large viewport height, extending under retracting mobile toolbars unless replaced with dvh or svh units. (Signature: Fixed bottom CTA clipped below mobile Safari/Chrome dynamic toolbar when layout viewport differs from visual viewport) - [Keyboard Tab focus escapes modal dialog into background page](https://frontend.rocks/symptoms/modal-focus-escapes-behind-backdrop/): Custom div modals fail to mark background subtrees inert or use the native Top Layer, allowing keyboard focus and assistive tech to leak behind the backdrop. (Signature: document.activeElement moves behind modal overlay; screen reader navigates background landmarks while dialog is open) - [Validation regex hangs the browser tab on crafted user input (ReDoS)](https://frontend.rocks/symptoms/regex-hangs-tab-on-input/): Nested quantifiers in NFA regular expressions cause exponential backtracking on near-matching strings, locking up the JS thread. (Signature: Main thread frozen 100% inside RegExp.prototype.test; DevTools Flame Chart shows catastrophic backtracking) - [Utility CSS classes fail to override component styles despite source order](https://frontend.rocks/symptoms/css-specificity-override-fails/): Unlayered compound selectors outrank later single-class utilities in the cascade unless isolated with @layer declarations. (Signature: DevTools Styles pane shows utility rule crossed out due to higher selector specificity (0,2,0) vs (0,1,0)) - [Users remain stuck on old app version after deploy due to Service Worker](https://frontend.rocks/symptoms/service-worker-serves-stale-app/): A new Service Worker waits until all controlled tabs close unless skipWaiting and client reload coordination are handled cleanly. (Signature: DevTools Application > Service Workers shows new worker stuck in "waiting to activate" while tabs serve cached old bundle) - [useEffect dependency loop triggers Maximum update depth exceeded and 429 API burst](https://frontend.rocks/symptoms/useeffect-infinite-loop-429/): Allocating a fresh filter object literal per render fails Object.is() in useEffect, rescheduling commits and uncancelled fetches until API rate limits trip. (Signature: Console: "Maximum update depth exceeded"; Network waterfall shows 47+ uncancelled GET /api/items requests returning HTTP 429 Too Many Requests) ## Concepts - [Accessibility-Tree Queries vs DOM Implementation Coupling](https://frontend.rocks/concepts/a11y-tree-queries-vs-dom-selectors.md) ([HTML](https://frontend.rocks/concepts/a11y-tree-queries-vs-dom-selectors/)): CSS and data-testid selectors pass on clickable divs that screen readers and keyboards cannot reach; querying by computed ARIA role and accessible name tests the user-facing contract. (testing-verification, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/a11y-tree-queries-vs-dom-selectors/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/a11y-tree-queries-vs-dom-selectors/#production-pitfalls) - [AbortController and Cooperative Cancellation](https://frontend.rocks/concepts/abortcontroller-cancellation.md) ([HTML](https://frontend.rocks/concepts/abortcontroller-cancellation/)): Kill-switch for in-flight fetch calls, DOM listeners, and async tasks you should have stopped three renders ago—without boolean isMounted flags. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/abortcontroller-cancellation/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/abortcontroller-cancellation/#production-pitfalls) - [The Accessibility Tree and WAI-ARIA Semantics](https://frontend.rocks/concepts/accessibility-tree-aria.md) ([HTML](https://frontend.rocks/concepts/accessibility-tree-aria/)): Parallel OS-exposed tree derived from the DOM and CSSOM that computes each element's Role, Accessible Name, States, and Properties for assistive technologies. (security-a11y, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/accessibility-tree-aria/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/accessibility-tree-aria/#production-pitfalls) - [Actor-over-Worker Architecture (Off-Main-Thread UI)](https://frontend.rocks/concepts/actor-over-worker-architecture.md) ([HTML](https://frontend.rocks/concepts/actor-over-worker-architecture/)): Stop freezing 60fps UI frames with Redux reducers and SQLite queries on the main thread. Isolated Worker actors serialize state mutations behind message mailboxes, keeping the main thread exclusively for DOM commits and input. (web-apis, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/actor-over-worker-architecture/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/actor-over-worker-architecture/#production-pitfalls) - [Async Clipboard API and User Activation](https://frontend.rocks/concepts/async-clipboard-activation.md) ([HTML](https://frontend.rocks/concepts/async-clipboard-activation/)): Promise-based OS clipboard access gated by HTTPS, document focus, and transient user activation tokens, supporting deferred Blob resolution via ClipboardItem. (web-apis, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/async-clipboard-activation/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/async-clipboard-activation/#production-pitfalls) - [Async Determinism, Fake Timers & Microtask Draining](https://frontend.rocks/concepts/async-determinism-fake-timers.md) ([HTML](https://frontend.rocks/concepts/async-determinism-fake-timers/)): Real setTimeout calls in tests bake CI CPU jitter into assertions; fake timers replace wall-clock APIs with a deterministic queue that still breaks if microtasks are not drained. (testing-verification, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/async-determinism-fake-timers/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/async-determinism-fake-timers/#production-pitfalls) - [Beacon API and visibilitychange Lifecycle](https://frontend.rocks/concepts/beacon-api-visibilitychange.md) ([HTML](https://frontend.rocks/concepts/beacon-api-visibilitychange/)): Prevent dropped analytics and broken bfcache on tab close by handing <= 64 KB POST payloads to the browser network process on visibilitychange. (web-apis, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/beacon-api-visibilitychange/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/beacon-api-visibilitychange/#production-pitfalls) - [Back/Forward Cache (bfcache)](https://frontend.rocks/concepts/bfcache-navigation.md) ([HTML](https://frontend.rocks/concepts/bfcache-navigation/)): In-memory cache snapshotting the full JS heap and DOM tree on outbound navigation to restore the page instantaneously on Back/Forward. (network-perf, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/bfcache-navigation/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/bfcache-navigation/#production-pitfalls) - [Block Formatting Context (BFC)](https://frontend.rocks/concepts/block-formatting-context.md) ([HTML](https://frontend.rocks/concepts/block-formatting-context/)): Stop parent-child vertical margin collapse and zero-height float wrappers without clipping shadows—display: flow-root isolates a box's layout region. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/block-formatting-context/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/block-formatting-context/#production-pitfalls) - [BroadcastChannel and Web Locks API](https://frontend.rocks/concepts/broadcast-channel-web-locks.md) ([HTML](https://frontend.rocks/concepts/broadcast-channel-web-locks/)): Origin-scoped pub/sub messaging and async mutual-exclusion locks coordinated by the browser process across tabs, iframes, and workers. (web-apis, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/broadcast-channel-web-locks/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/broadcast-channel-web-locks/#production-pitfalls) - [Browser Rendering Pipeline (Critical Rendering Path)](https://frontend.rocks/concepts/browser-rendering-pipeline.md) ([HTML](https://frontend.rocks/concepts/browser-rendering-pipeline/)): Avoid 60fps-killing main-thread reflows by targeting compositor-only properties—every geometric DOM write forces Style, Layout, Paint, and Composite to re-run. (rendering-pipeline, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/browser-rendering-pipeline/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/browser-rendering-pipeline/#production-pitfalls) - [The Browser Top Layer](https://frontend.rocks/concepts/browser-top-layer.md) ([HTML](https://frontend.rocks/concepts/browser-top-layer/)): End z-index: 99999 wars and overflow: hidden modal clipping—the Browser Top Layer paints and [popover] in a document-level LIFO list above the root stacking context. (dom-events, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/browser-top-layer/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/browser-top-layer/#production-pitfalls) - [CDN Edge Cache Keys & Vary](https://frontend.rocks/concepts/cdn-edge-cache-keys.md) ([HTML](https://frontend.rocks/concepts/cdn-edge-cache-keys/)): Determines whether a CDN edge PoP serves a cached response or hits your origin by hashing URL, normalized query params, and Vary headers into a lookup key. (network-perf, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/cdn-edge-cache-keys/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/cdn-edge-cache-keys/#production-pitfalls) - [Client-Side Router & Radix Tree Matching](https://frontend.rocks/concepts/client-side-router-internals.md) ([HTML](https://frontend.rocks/concepts/client-side-router-internals/)): Linear regex arrays stall route matching on large apps and leak stale navigation fetches. Radix-tree routers resolve paths in O(path_length), abort superseded loaders, and integrate with browser navigation primitives. (framework-internals, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/client-side-router-internals/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/client-side-router-internals/#production-pitfalls) - [Client Storage Versioning & Zero-Downtime Migrations](https://frontend.rocks/concepts/client-storage-schema-migrations.md) ([HTML](https://frontend.rocks/concepts/client-storage-schema-migrations/)): Prevents hung IndexedDB upgrades and wiped user drafts during deploys by coordinating schema version bumps across open tabs with onversionchange and expand-and-contract migrations. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/client-storage-schema-migrations/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/client-storage-schema-migrations/#production-pitfalls) - [Deterministic Command Logs & Time-Travel Debugging](https://frontend.rocks/concepts/command-pattern-event-sourcing-ui.md) ([HTML](https://frontend.rocks/concepts/command-pattern-event-sourcing-ui/)): Makes complex editor bugs reproducible in seconds by storing state transitions as an immutable append-only command log rather than mutating objects in place. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/command-pattern-event-sourcing-ui/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/command-pattern-event-sourcing-ui/#production-pitfalls) - [Brotli & Compression Dictionaries](https://frontend.rocks/concepts/compression-brotli-dictionaries.md) ([HTML](https://frontend.rocks/concepts/compression-brotli-dictionaries/)): Shrinks text payloads 15–25% beyond gzip with Brotli, and turns cached prior bundles into external LZ77 dictionaries so minor releases ship only binary diffs. (network-perf, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/compression-brotli-dictionaries/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/compression-brotli-dictionaries/#production-pitfalls) - [Priority Lanes & Time-Slicing Schedulers](https://frontend.rocks/concepts/concurrent-rendering-lanes.md) ([HTML](https://frontend.rocks/concepts/concurrent-rendering-lanes/)): Heavy state updates lock the main thread and tank INP past 200 ms. Bitmask priority lanes let a framework scheduler pause background tree reconciliation, yield to user input, and resume work across frames. (framework-internals, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/concurrent-rendering-lanes/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/concurrent-rendering-lanes/#production-pitfalls) - [content-visibility & Skipping Offscreen Work](https://frontend.rocks/concepts/content-visibility.md) ([HTML](https://frontend.rocks/concepts/content-visibility/)): content-visibility: auto skips layout and paint for off-screen subtrees while keeping them searchable in the DOM. (rendering-pipeline, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/content-visibility/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/content-visibility/#production-pitfalls) - [Core Web Vitals Mechanics (LCP, INP, CLS)](https://frontend.rocks/concepts/core-web-vitals-mechanics.md) ([HTML](https://frontend.rocks/concepts/core-web-vitals-mechanics/)): Breaks down the three user-centric engine metrics—LCP (<=2.5s), INP (<=200ms), and CLS (<=0.1)—by the exact browser pipeline phases they measure. (network-perf, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/core-web-vitals-mechanics/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/core-web-vitals-mechanics/#production-pitfalls) - [CORS Preflight and SameSite Cookie Boundaries](https://frontend.rocks/concepts/cors-preflight-samesite.md) ([HTML](https://frontend.rocks/concepts/cors-preflight-samesite/)): Fetch-layer cross-origin read gating via OPTIONS preflight handshakes, paired with SameSite cookie attributes that restrict cross-site credential attachment. (security-a11y, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/cors-preflight-samesite/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/cors-preflight-samesite/#production-pitfalls) - [Cross-Origin Isolation with COOP and COEP](https://frontend.rocks/concepts/cross-origin-isolation-coop-coep.md) ([HTML](https://frontend.rocks/concepts/cross-origin-isolation-coop-coep/)): Process-level browser isolation enabled by Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers, unlocking SharedArrayBuffer and high-resolution timers by blocking unverified cross-origin bytes. (security-a11y, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/cross-origin-isolation-coop-coep/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/cross-origin-isolation-coop-coep/#production-pitfalls) - [Multi-Tab State Synchronization & Leader Election](https://frontend.rocks/concepts/cross-tab-leader-election.md) ([HTML](https://frontend.rocks/concepts/cross-tab-leader-election/)): Stops N open browser tabs from hammering WebSockets, refreshing OAuth tokens in parallel, and corrupting IndexedDB by electing a single leader tab with Web Locks and BroadcastChannel. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/cross-tab-leader-election/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/cross-tab-leader-election/#production-pitfalls) - [Content Security Policy Nonces and strict-dynamic](https://frontend.rocks/concepts/csp-nonces-strict-dynamic.md) ([HTML](https://frontend.rocks/concepts/csp-nonces-strict-dynamic/)): HTTP-header script execution allowlist using per-response cryptographic nonces and 'strict-dynamic' trust propagation to block injected scripts without brittle domain allowlists. (security-a11y, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/csp-nonces-strict-dynamic/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/csp-nonces-strict-dynamic/#production-pitfalls) - [CSS Anchor Positioning](https://frontend.rocks/concepts/css-anchor-positioning.md) ([HTML](https://frontend.rocks/concepts/css-anchor-positioning/)): anchor-name and anchor() tether popovers and tooltips to trigger elements natively in Layout, including viewport-collision flips. (css-layout, interop-experimental) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-anchor-positioning/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-anchor-positioning/#production-pitfalls) - [CSS Cascade Layers (@layer)](https://frontend.rocks/concepts/css-cascade-layers.md) ([HTML](https://frontend.rocks/concepts/css-cascade-layers/)): Native CSS cascade mechanism allowing explicit stylesheet priority ordering before selector specificity is even evaluated. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-cascade-layers/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-cascade-layers/#production-pitfalls) - [CSS Container Queries (@container)](https://frontend.rocks/concepts/css-container-queries.md) ([HTML](https://frontend.rocks/concepts/css-container-queries/)): CSS queries evaluating an explicit parent container's dimensions or styles instead of the global viewport, resolved natively during Layout. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-container-queries/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-container-queries/#production-pitfalls) - [CSS Containment](https://frontend.rocks/concepts/css-containment.md) ([HTML](https://frontend.rocks/concepts/css-containment/)): The contain property fences off subtrees so style, layout, or paint invalidations never leak to the rest of the document. (rendering-pipeline, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-containment/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-containment/#production-pitfalls) - [CSS Custom Properties & Cascade](https://frontend.rocks/concepts/css-custom-properties-cascade.md) ([HTML](https://frontend.rocks/concepts/css-custom-properties-cascade/)): Custom properties inherit through the DOM tree and resolve var() at computed-value time, enabling dynamic theming without preprocessor compilation. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-custom-properties-cascade/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-custom-properties-cascade/#production-pitfalls) - [CSS Grid Track Sizing Algorithm](https://frontend.rocks/concepts/css-grid-track-sizing.md) ([HTML](https://frontend.rocks/concepts/css-grid-track-sizing/)): Grid resolves tracks in four passes: fixed lengths, intrinsic content bounds, minmax() clamping, and fr free-space distribution. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-grid-track-sizing/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-grid-track-sizing/#production-pitfalls) - [CSS :has() Relational Selector](https://frontend.rocks/concepts/css-has-selector.md) ([HTML](https://frontend.rocks/concepts/css-has-selector/)): :has() matches an element based on its descendants or following siblings, eliminating JS parent-class toggling. (css-layout, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-has-selector/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-has-selector/#production-pitfalls) - [CSS Houdini @property](https://frontend.rocks/concepts/css-houdini-property.md) ([HTML](https://frontend.rocks/concepts/css-houdini-property/)): @property registers typed custom properties so the CSS engine can interpolate gradients, angles, and colors smoothly. (rendering-pipeline, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-houdini-property/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-houdini-property/#production-pitfalls) - [CSS Logical Properties](https://frontend.rocks/concepts/css-logical-properties.md) ([HTML](https://frontend.rocks/concepts/css-logical-properties/)): Logical properties (inline-start, block-end) map margins, padding, and borders to writing-mode and direction automatically. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-logical-properties/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-logical-properties/#production-pitfalls) - [CSS Nesting & @scope](https://frontend.rocks/concepts/css-nesting-and-scope.md) ([HTML](https://frontend.rocks/concepts/css-nesting-and-scope/)): Native & nesting desugars to :is() specificity rules, while @scope bounds selector matching between an upper root and lower donut holes. (css-layout, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-nesting-and-scope/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-nesting-and-scope/#production-pitfalls) - [CSS Scroll Snap](https://frontend.rocks/concepts/css-scroll-snap.md) ([HTML](https://frontend.rocks/concepts/css-scroll-snap/)): scroll-snap-type and scroll-snap-align lock scroll rest positions to child landmarks on the Compositor Thread without JS timers. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-scroll-snap/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-scroll-snap/#production-pitfalls) - [CSS Specificity & Inheritance](https://frontend.rocks/concepts/css-specificity-inheritance.md) ([HTML](https://frontend.rocks/concepts/css-specificity-inheritance/)): Cascade resolves Origin, @layer, (A,B,C) specificity, and source order; inherited properties propagate down only when no rule matches. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-specificity-inheritance/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-specificity-inheritance/#production-pitfalls) - [CSS Stacking Context](https://frontend.rocks/concepts/css-stacking-context.md) ([HTML](https://frontend.rocks/concepts/css-stacking-context/)): Hierarchical tree isolating Z-axis paint order. A high z-index remains trapped inside its parent stacking context. (rendering-pipeline, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-stacking-context/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-stacking-context/#production-pitfalls) - [CSS Subgrid](https://frontend.rocks/concepts/css-subgrid.md) ([HTML](https://frontend.rocks/concepts/css-subgrid/)): subgrid lets nested grid containers inherit parent row or column tracks so sibling cards align internal headers and footers. (css-layout, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/css-subgrid/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/css-subgrid/#production-pitfalls) - [Custom Elements Lifecycle and Upgrade Reactions](https://frontend.rocks/concepts/custom-elements-lifecycle.md) ([HTML](https://frontend.rocks/concepts/custom-elements-lifecycle/)): Build framework-agnostic UI primitives without hydration races—customElements.define() upgrades existing DOM nodes via deterministic lifecycle reaction queues. (dom-events, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/custom-elements-lifecycle/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/custom-elements-lifecycle/#production-pitfalls) - [Debounce, Throttle & rAF Coalescing](https://frontend.rocks/concepts/debounce-throttle-raf-coalescing.md) ([HTML](https://frontend.rocks/concepts/debounce-throttle-raf-coalescing/)): Separates bursty input rates from execution: debounce waits for quietness (API search), throttle caps interval rate (telemetry), and rAF coalescing aligns visual writes to VSync. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/debounce-throttle-raf-coalescing/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/debounce-throttle-raf-coalescing/#production-pitfalls) - [Dedicated Web Workers and Transferables](https://frontend.rocks/concepts/dedicated-web-workers.md) ([HTML](https://frontend.rocks/concepts/dedicated-web-workers/)): Isolated OS-thread JavaScript runtimes with their own event loop and no DOM access, communicating via structured cloning or zero-copy transferable ownership. (web-apis, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/dedicated-web-workers/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/dedicated-web-workers/#production-pitfalls) - [Device Pixel Ratio & Subpixel Rendering](https://frontend.rocks/concepts/device-pixel-ratio-subpixel.md) ([HTML](https://frontend.rocks/concepts/device-pixel-ratio-subpixel/)): CSS pixels decouple from physical hardware pixels via devicePixelRatio, causing fractional coordinates to blur unless snapped. (rendering-pipeline, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/device-pixel-ratio-subpixel/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/device-pixel-ratio-subpixel/#production-pitfalls) - [DOM & CSSOM Construction](https://frontend.rocks/concepts/dom-cssom-construction.md) ([HTML](https://frontend.rocks/concepts/dom-cssom-construction/)): Byte streams tokenize into DOM and CSSOM trees. Synchronous scripts stall DOM parsing until CSSOM finishes. (rendering-pipeline, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/dom-cssom-construction/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/dom-cssom-construction/#production-pitfalls) - [DOM Event Propagation (Capture, Target, Bubble)](https://frontend.rocks/concepts/dom-event-propagation.md) ([HTML](https://frontend.rocks/concepts/dom-event-propagation/)): Three-phase DOM event traversal from window to target and back, enabling single-listener delegation on common ancestors. (dom-events, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/dom-event-propagation/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/dom-event-propagation/#production-pitfalls) - [DOM XSS Prevention with Trusted Types](https://frontend.rocks/concepts/dom-xss-trusted-types.md) ([HTML](https://frontend.rocks/concepts/dom-xss-trusted-types/)): Type-enforced browser defense that locks dangerous DOM sinks (innerHTML, eval, script.src) against raw strings, permitting only objects minted by audited TrustedTypePolicy sanitizers. (security-a11y, interop-experimental) · Anchors: [Under the Hood](https://frontend.rocks/concepts/dom-xss-trusted-types/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/dom-xss-trusted-types/#production-pitfalls) - [Dynamic Viewport Units (dvh, svh, lvh)](https://frontend.rocks/concepts/dynamic-viewport-units.md) ([HTML](https://frontend.rocks/concepts/dynamic-viewport-units/)): svh, lvh, and dvh disambiguate mobile browser toolbars so full-screen layouts never clip behind the address bar. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/dynamic-viewport-units/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/dynamic-viewport-units/#production-pitfalls) - [103 Early Hints](https://frontend.rocks/concepts/early-hints-103.md) ([HTML](https://frontend.rocks/concepts/early-hints-103/)): Sends an interim HTTP 103 frame with Link preload headers while the server is still rendering HTML, overlapping subresource fetches with origin think time. (network-perf, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/early-hints-103/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/early-hints-103/#production-pitfalls) - [ES Modules and Live Bindings](https://frontend.rocks/concepts/es-modules-live-bindings.md) ([HTML](https://frontend.rocks/concepts/es-modules-live-bindings/)): Eliminate stale circular-import snapshots and unlock static tree-shaking—ESM imports wire read-only indirect pointers into the exporter's ModuleEnvironmentRecord. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/es-modules-live-bindings/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/es-modules-live-bindings/#production-pitfalls) - [Event Loop, Macrotasks, and Microtask Queue](https://frontend.rocks/concepts/event-loop-tasks-microtasks.md) ([HTML](https://frontend.rocks/concepts/event-loop-tasks-microtasks/)): Prevent 60fps frame starvation and Promise-loop freezes—the Event Loop drains the entire Microtask Queue after every single macrotask before painting. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/event-loop-tasks-microtasks/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/event-loop-tasks-microtasks/#production-pitfalls) - [Execution Context, Lexical Environment, and Call Stack](https://frontend.rocks/concepts/execution-context-call-stack.md) ([HTML](https://frontend.rocks/concepts/execution-context-call-stack/)): Understand stack overflows, Temporal Dead Zone errors, and closure heap promotion—every call pushes an Execution Context frame onto V8's single-threaded Call Stack. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/execution-context-call-stack/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/execution-context-call-stack/#production-pitfalls) - [Signals and Fine-Grained Reactivity (Reactive Graph)](https://frontend.rocks/concepts/fine-grained-signals.md) ([HTML](https://frontend.rocks/concepts/fine-grained-signals/)): Reactive model built on a directed acyclic dependency graph (Signal, Computed, Effect) updating only subscribed DOM nodes without virtual tree diffing. (state-architecture, interop-experimental) · Anchors: [Under the Hood](https://frontend.rocks/concepts/fine-grained-signals/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/fine-grained-signals/#production-pitfalls) - [Finite State Machines for UI](https://frontend.rocks/concepts/finite-state-machines-ui.md) ([HTML](https://frontend.rocks/concepts/finite-state-machines-ui/)): Replaces overlapping boolean flags (isLoading, isError, isRetrying) with a discriminated union and explicit (state, event) transition table that makes invalid states unrepresentable. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/finite-state-machines-ui/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/finite-state-machines-ui/#production-pitfalls) - [Flexbox & Intrinsic Sizing](https://frontend.rocks/concepts/flexbox-intrinsic-sizing.md) ([HTML](https://frontend.rocks/concepts/flexbox-intrinsic-sizing/)): Flex items default to min-width: auto, preventing shrink below their min-content size unless min-width: 0 or overflow is set. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/flexbox-intrinsic-sizing/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/flexbox-intrinsic-sizing/#production-pitfalls) - [Font Loading & CLS Mechanics](https://frontend.rocks/concepts/font-loading-cls.md) ([HTML](https://frontend.rocks/concepts/font-loading-cls/)): Balances Flash of Invisible Text (FOIT) against Cumulative Layout Shift (CLS) using font-display timers, WOFF2 subsetting, and CSS metric overrides. (network-perf, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/font-loading-cls/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/font-loading-cls/#production-pitfalls) - [GPU Compositor Layers and will-change](https://frontend.rocks/concepts/gpu-compositor-layers.md) ([HTML](https://frontend.rocks/concepts/gpu-compositor-layers/)): Promotion of a DOM subtree to a dedicated GPU texture allowing the Compositor Thread to animate transform and opacity without Layout or Paint. (rendering-pipeline, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/gpu-compositor-layers/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/gpu-compositor-layers/#production-pitfalls) - [Headless UI Primitives & Compound State Contracts](https://frontend.rocks/concepts/headless-ui-state-primitives.md) ([HTML](https://frontend.rocks/concepts/headless-ui-state-primitives/)): Styled component libraries couple design tokens to fragile DOM wrappers, forcing 40 KB overrides when designs diverge. Headless primitives expose pure ARIA state machines, keyboard navigation, and top-layer anchoring without owning a single pixel. (framework-internals, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/headless-ui-state-primitives/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/headless-ui-state-primitives/#production-pitfalls) - [Hierarchical Statecharts & UI Actor Model](https://frontend.rocks/concepts/hierarchical-statecharts-actors.md) ([HTML](https://frontend.rocks/concepts/hierarchical-statecharts-actors/)): Stops state explosion in multi-step wizards and parallel media players by nesting child states, running orthogonal regions, and isolating async work inside spawned UI actors. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/hierarchical-statecharts-actors/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/hierarchical-statecharts-actors/#production-pitfalls) - [HTTP Caching Directives](https://frontend.rocks/concepts/http-caching-directives.md) ([HTML](https://frontend.rocks/concepts/http-caching-directives/)): Controls disk and shared cache reuse via Cache-Control, ETag, and Vary headers—separating immutable hashed assets from revalidated HTML documents. (network-perf, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/http-caching-directives/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/http-caching-directives/#production-pitfalls) - [HTTP/2 & HTTP/3 Multiplexing](https://frontend.rocks/concepts/http2-http3-multiplexing.md) ([HTML](https://frontend.rocks/concepts/http2-http3-multiplexing/)): Interleaves concurrent request frames over one connection; HTTP/3 moves multiplexing to QUIC so packet loss on one stream never stalls sibling assets. (network-perf, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/http2-http3-multiplexing/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/http2-http3-multiplexing/#production-pitfalls) - [Hydration Mismatch & Subtree Bailout Mechanics](https://frontend.rocks/concepts/hydration-mismatch-mechanics.md) ([HTML](https://frontend.rocks/concepts/hydration-mismatch-mechanics/)): One mismatched timestamp or browser-extension node during SSR hydration can discard the server DOM and force a synchronous client re-render. Understanding cursor matching and Suspense bailout boundaries keeps LCP and INP intact. (framework-internals, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/hydration-mismatch-mechanics/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/hydration-mismatch-mechanics/#production-pitfalls) - [Outbox Queues, Idempotency Keys & Causal Ordering](https://frontend.rocks/concepts/idempotency-optimistic-queues.md) ([HTML](https://frontend.rocks/concepts/idempotency-optimistic-queues/)): Prevents duplicate charges and out-of-order server overwrites on flaky networks by persisting mutations in an IndexedDB FIFO outbox with UUID idempotency keys. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/idempotency-optimistic-queues/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/idempotency-optimistic-queues/#production-pitfalls) - [Import Maps & Browser-Native Module Resolution](https://frontend.rocks/concepts/import-maps-runtime-graphs.md) ([HTML](https://frontend.rocks/concepts/import-maps-runtime-graphs/)): Content-hash bundle invalidation forces entire vendor chunks to re-download when one utility line changes. Import Maps resolve bare specifiers in the browser without a bundler, isolating cache keys per module. (web-apis, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/import-maps-runtime-graphs/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/import-maps-runtime-graphs/#production-pitfalls) - [IndexedDB Transactions and Storage Quotas](https://frontend.rocks/concepts/indexeddb-transactions-quotas.md) ([HTML](https://frontend.rocks/concepts/indexeddb-transactions-quotas/)): Transactional client-side B-tree object store whose transactions auto-commit on microtask drain and whose storage limits depend on origin-wide disk quotas. (web-apis, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/indexeddb-transactions-quotas/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/indexeddb-transactions-quotas/#production-pitfalls) - [The inert Attribute and Modal Focus Containment](https://frontend.rocks/concepts/inert-attribute-focus.md) ([HTML](https://frontend.rocks/concepts/inert-attribute-focus/)): Boolean HTML attribute that removes an entire subtree from pointer hit-testing, keyboard focus order, text selection, find-in-page, and the accessibility tree. (dom-events, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/inert-attribute-focus/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/inert-attribute-focus/#production-pitfalls) - [IntersectionObserver and Asynchronous Visibility](https://frontend.rocks/concepts/intersection-observer.md) ([HTML](https://frontend.rocks/concepts/intersection-observer/)): Eliminate scroll-handler layout thrashing in lazy loading and infinite lists—IntersectionObserver reads cached layout boxes once per frame after Layout. (dom-events, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/intersection-observer/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/intersection-observer/#production-pitfalls) - [Hybrid Rendering Topologies (SSG, SSR, ISR & Edge Cache)](https://frontend.rocks/concepts/isr-swr-edge-invalidation.md) ([HTML](https://frontend.rocks/concepts/isr-swr-edge-invalidation/)): Pure SSG breaks on 100,000-page catalogs with 40-minute builds, while uncached SSR melts origin databases under traffic spikes. ISR and tag-based edge invalidation serve static CDN hits while regenerating stale pages asynchronously. (framework-internals, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/isr-swr-edge-invalidation/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/isr-swr-edge-invalidation/#production-pitfalls) - [JS Floating Positioning Engines (Floating UI)](https://frontend.rocks/concepts/js-floating-positioning-engines.md) ([HTML](https://frontend.rocks/concepts/js-floating-positioning-engines/)): Floating positioning engines compute coordinates via getBoundingClientRect() and middleware pipelines (flip, shift, offset) synced to scroll and resize. (css-layout, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/js-floating-positioning-engines/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/js-floating-positioning-engines/#production-pitfalls) - [JavaScript Generational Garbage Collection](https://frontend.rocks/concepts/js-garbage-collection.md) ([HTML](https://frontend.rocks/concepts/js-garbage-collection/)): Prevent frame-drop GC pauses by understanding V8's Orinoco collector—short-lived objects evacuate between Young Generation semi-spaces while Old Generation marks concurrently. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/js-garbage-collection/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/js-garbage-collection/#production-pitfalls) - [Memory Leaks, Retainers, and Detached DOM Trees](https://frontend.rocks/concepts/js-memory-leaks-retainers.md) ([HTML](https://frontend.rocks/concepts/js-memory-leaks-retainers/)): Unintended strong reference paths from GC roots—often via global listeners, timers, or shared closure Contexts—that pin dead objects and detached DOM trees. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/js-memory-leaks-retainers/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/js-memory-leaks-retainers/#production-pitfalls) - [JS ResizeObserver Pattern for Adaptive Layout](https://frontend.rocks/concepts/js-resize-observer-pattern.md) ([HTML](https://frontend.rocks/concepts/js-resize-observer-pattern/)): Legacy pattern using ResizeObserver and JS state to toggle CSS classes based on container width. Superseded by @container. (css-layout, superseded) · Anchors: [Under the Hood](https://frontend.rocks/concepts/js-resize-observer-pattern/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/js-resize-observer-pattern/#production-pitfalls) - [Layout Thrashing (Forced Synchronous Layout)](https://frontend.rocks/concepts/layout-thrashing.md) ([HTML](https://frontend.rocks/concepts/layout-thrashing/)): Interleaving DOM writes and geometric reads inside JavaScript forces the engine to recompute Layout synchronously on every iteration. (rendering-pipeline, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/layout-thrashing/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/layout-thrashing/#production-pitfalls) - [Local-First Sync & CRDTs](https://frontend.rocks/concepts/local-first-sync-crdt.md) ([HTML](https://frontend.rocks/concepts/local-first-sync-crdt/)): Persists every edit locally in IndexedDB/OPFS at 0 ms network wait and uses Conflict-free Replicated Data Types (CRDTs) so offline peers merge deterministically. (state-architecture, interop-experimental) · Anchors: [Under the Hood](https://frontend.rocks/concepts/local-first-sync-crdt/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/local-first-sync-crdt/#production-pitfalls) - [Long Tasks and Interaction to Next Paint (INP)](https://frontend.rocks/concepts/long-tasks-and-inp.md) ([HTML](https://frontend.rocks/concepts/long-tasks-and-inp/)): Fix sluggish clicks and fail-threshold INP (>200 ms) by breaking >50 ms Long Tasks—Input Delay, Processing Duration, and Presentation Delay all compete on one main thread. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/long-tasks-and-inp/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/long-tasks-and-inp/#production-pitfalls) - [Micro-Frontend Isolation: Shadow DOM, Iframes & Module Graphs](https://frontend.rocks/concepts/microfrontend-isolation-models.md) ([HTML](https://frontend.rocks/concepts/microfrontend-isolation-models/)): Naive script concatenation leaks global CSS, clobbers window state, and ships duplicate React runtimes. Choosing between Shadow DOM, sandboxed iframes, and shared ES module graphs defines your blast radius and memory budget. (framework-internals, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/microfrontend-isolation-models/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/microfrontend-isolation-models/#production-pitfalls) - [MutationObserver and Batched Microtask Delivery](https://frontend.rocks/concepts/mutation-observer.md) ([HTML](https://frontend.rocks/concepts/mutation-observer/)): Replace main-thread-freezing Mutation Events with batched microtask delivery—MutationObserver queues DOM edits silently and flushes MutationRecord[] once after the Call Stack unwinds. (dom-events, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/mutation-observer/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/mutation-observer/#production-pitfalls) - [ Element and Native Top Layer](https://frontend.rocks/concepts/native-dialog-element.md) ([HTML](https://frontend.rocks/concepts/native-dialog-element/)): HTML primitive placing modals in the browser Top Layer above any z-index, with built-in focus management and Escape key handling. (dom-events, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/native-dialog-element/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/native-dialog-element/#production-pitfalls) - [Deterministic Network Interception & HAR Replay](https://frontend.rocks/concepts/network-interception-har-replay.md) ([HTML](https://frontend.rocks/concepts/network-interception-har-replay/)): Live staging APIs flake tests on rate limits and drifting data, while stubbing window.fetch hides serialization and streaming bugs; intercepting at the browser network layer replays real HTTP frames deterministically. (testing-verification, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/network-interception-har-replay/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/network-interception-har-replay/#production-pitfalls) - [Normalized Entity Graphs vs Document-Keyed Caches](https://frontend.rocks/concepts/normalized-vs-document-caches.md) ([HTML](https://frontend.rocks/concepts/normalized-vs-document-caches/)): Prevents stale duplicate records across overlapping views without 40 KB GraphQL client overhead by choosing between flat document-keyed caches and normalized entity graphs. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/normalized-vs-document-caches/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/normalized-vs-document-caches/#production-pitfalls) - [Origin Private File System (OPFS)](https://frontend.rocks/concepts/opfs-origin-private-fs.md) ([HTML](https://frontend.rocks/concepts/opfs-origin-private-fs/)): Origin-sandboxed virtual file system backed by raw OS files, offering synchronous in-place byte-range I/O inside Dedicated Workers. (web-apis, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/opfs-origin-private-fs/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/opfs-origin-private-fs/#production-pitfalls) - [Optimistic UI & Rollback Safety](https://frontend.rocks/concepts/optimistic-ui-rollback.md) ([HTML](https://frontend.rocks/concepts/optimistic-ui-rollback/)): Applies speculative UI state immediately on user action while retaining an immutable confirmed snapshot for atomic rollback if the network request fails. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/optimistic-ui-rollback/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/optimistic-ui-rollback/#production-pitfalls) - [Paint & Rasterization](https://frontend.rocks/concepts/paint-rasterization.md) ([HTML](https://frontend.rocks/concepts/paint-rasterization/)): Paint records drawing commands into DisplayLists; Rasterization turns those vector commands into GPU-ready bitmap tiles. (rendering-pipeline, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/paint-rasterization/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/paint-rasterization/#production-pitfalls) - [Passive Event Listeners and Compositor Scrolling](https://frontend.rocks/concepts/passive-event-listeners.md) ([HTML](https://frontend.rocks/concepts/passive-event-listeners/)): Eliminate 100ms+ mobile scroll-start jank—{ passive: true } promises the GPU compositor thread that wheel/touch listeners will never call preventDefault(). (dom-events, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/passive-event-listeners/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/passive-event-listeners/#production-pitfalls) - [PerformanceObserver & RUM Telemetry](https://frontend.rocks/concepts/performance-observer-rum.md) ([HTML](https://frontend.rocks/concepts/performance-observer-rum/)): Streams real-user timing entries (LCP, INP, LoAF, resource timing) asynchronously via PerformanceObserver with buffered: true and flushes via sendBeacon. (network-perf, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/performance-observer-rum/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/performance-observer-rum/#production-pitfalls) - [Pointer Events, touch-action, and Pointer Capture](https://frontend.rocks/concepts/pointer-events-touch-action.md) ([HTML](https://frontend.rocks/concepts/pointer-events-touch-action/)): Stop mobile browser scroll from hijacking custom drags and sliders—CSS touch-action negotiates gesture ownership on the compositor while setPointerCapture() locks fast pointer streams. (dom-events, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/pointer-events-touch-action/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/pointer-events-touch-action/#production-pitfalls) - [Popover API (HTML popover Attribute)](https://frontend.rocks/concepts/popover-api-light-dismiss.md) ([HTML](https://frontend.rocks/concepts/popover-api-light-dismiss/)): Declarative HTML attribute rendering menus, tooltips, or toasts in the Top Layer with automatic light-dismiss and zero JavaScript. (dom-events, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/popover-api-light-dismiss/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/popover-api-light-dismiss/#production-pitfalls) - [Preload Scanner and fetchpriority Attribute](https://frontend.rocks/concepts/preload-scanner-hints.md) ([HTML](https://frontend.rocks/concepts/preload-scanner-hints/)): Speculative HTML scanner discovering critical resources before JS execution, paired with fetchpriority to reorder the HTTP/2-HTTP/3 queue. (network-perf, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/preload-scanner-hints/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/preload-scanner-hints/#production-pitfalls) - [Promises and async/await Internals](https://frontend.rocks/concepts/promises-async-await-internals.md) ([HTML](https://frontend.rocks/concepts/promises-async-await-internals/)): Avoid sequential await waterfalls and microtask starvation—async/await compiles to state-machine continuations that park the frame and resume on the Microtask Queue. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/promises-async-await-internals/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/promises-async-await-internals/#production-pitfalls) - [Prototype Chain Lookup and Delegation](https://frontend.rocks/concepts/prototype-chain-lookup.md) ([HTML](https://frontend.rocks/concepts/prototype-chain-lookup/)): Prevent V8 Inline Cache deoptimizations and prototype pollution bugs—property reads walk [[Prototype]] links until a descriptor matches or the chain hits null. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/prototype-chain-lookup/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/prototype-chain-lookup/#production-pitfalls) - [Proxy Traps and Reflect Internals](https://frontend.rocks/concepts/proxy-reflect-internals.md) ([HTML](https://frontend.rocks/concepts/proxy-reflect-internals/)): Build fine-grained reactivity without breaking inherited getters—Proxy traps intercept [[Get]]/[[Set]] while Reflect forwards receiver binding, at the cost of bypassing V8 Inline Caches. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/proxy-reflect-internals/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/proxy-reflect-internals/#production-pitfalls) - [Runtime Proxy Reactivity vs Static Compiler Graphs](https://frontend.rocks/concepts/proxy-vs-compiler-reactivity.md) ([HTML](https://frontend.rocks/concepts/proxy-vs-compiler-reactivity/)): Deep Proxy wrapping adds per-property trap overhead and hidden-class polymorphism, whereas static compilers rewrite assignments into direct DOM patches. Choosing between them trades runtime flexibility for zero-allocation update paths. (framework-internals, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/proxy-vs-compiler-reactivity/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/proxy-vs-compiler-reactivity/#production-pitfalls) - [React Portals and z-index Layering (Legacy Pattern)](https://frontend.rocks/concepts/react-portal-zindex-legacy.md) ([HTML](https://frontend.rocks/concepts/react-portal-zindex-legacy/)): Legacy pattern reparenting overlays to document.body via createPortal and global z-index scales—now superseded by native Browser Top Layer primitives. (dom-events, superseded) · Anchors: [Under the Hood](https://frontend.rocks/concepts/react-portal-zindex-legacy/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/react-portal-zindex-legacy/#production-pitfalls) - [WebSockets, SSE, Reconnection Jitter & Consumer Backpressure](https://frontend.rocks/concepts/realtime-streams-backpressure-jitter.md) ([HTML](https://frontend.rocks/concepts/realtime-streams-backpressure-jitter/)): Unbounded WebSocket bursts spike tab memory until OOM, while synchronized reconnects DDoS your own edge servers. Pair ReadableStream backpressure with full-jitter exponential backoff so slow UI consumers throttle sockets safely. (network-perf, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/realtime-streams-backpressure-jitter/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/realtime-streams-backpressure-jitter/#production-pitfalls) - [RegExp Backtracking (ReDoS) and Unicode Modes](https://frontend.rocks/concepts/regexp-backtracking-unicode.md) ([HTML](https://frontend.rocks/concepts/regexp-backtracking-unicode/)): Prevent catastrophic O(2^n) main-thread ReDoS freezes and broken 16-bit emoji splits—understand Irregexp's backtracking NFA and use /u or /v Unicode modes. (js-runtime, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/regexp-backtracking-unicode/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/regexp-backtracking-unicode/#production-pitfalls) - [Render Tree & Layout](https://frontend.rocks/concepts/render-tree-layout.md) ([HTML](https://frontend.rocks/concepts/render-tree-layout/)): Cut layout thrashing and oversized DOM reflow costs—the Render Tree prunes display: none subtrees before Layout computes exact box geometry. (rendering-pipeline, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/render-tree-layout/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/render-tree-layout/#production-pitfalls) - [requestAnimationFrame & VSync](https://frontend.rocks/concepts/requestanimationframe-vsync.md) ([HTML](https://frontend.rocks/concepts/requestanimationframe-vsync/)): requestAnimationFrame schedules callbacks right before the browser paints the next VSync frame, matching display refresh rates. (rendering-pipeline, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/requestanimationframe-vsync/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/requestanimationframe-vsync/#production-pitfalls) - [Responsive Images & Decoding](https://frontend.rocks/concepts/responsive-images-decoding.md) ([HTML](https://frontend.rocks/concepts/responsive-images-decoding/)): Pairs srcset/sizes, intrinsic width/height, fetchpriority, and decoding=async so the preload scanner fetches the right AVIF/WebP candidate and decodes it off the main thread. (network-perf, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/responsive-images-decoding/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/responsive-images-decoding/#production-pitfalls) - [Resumability vs Hydration](https://frontend.rocks/concepts/resumability-vs-hydration.md) ([HTML](https://frontend.rocks/concepts/resumability-vs-hydration/)): Contrasts eager SSR hydration—which replays component trees on the client to attach listeners—with resumability, which serializes state in HTML and loads handlers lazily. (state-architecture, interop-experimental) · Anchors: [Under the Hood](https://frontend.rocks/concepts/resumability-vs-hydration/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/resumability-vs-hydration/#production-pitfalls) - [Roving Tabindex and Focus Order Mechanics](https://frontend.rocks/concepts/roving-tabindex-focus-order.md) ([HTML](https://frontend.rocks/concepts/roving-tabindex-focus-order/)): Keyboard navigation pattern that reduces a multi-item composite widget to a single Tab stop by toggling tabindex='0' onto the active descendant while keeping siblings at tabindex='-1'. (security-a11y, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/roving-tabindex-focus-order/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/roving-tabindex-focus-order/#production-pitfalls) - [Server Actions & Serialized Closure Boundaries](https://frontend.rocks/concepts/rpc-server-actions-closures.md) ([HTML](https://frontend.rocks/concepts/rpc-server-actions-closures/)): Server Actions look like local async functions, yet every invocation crosses an unauthenticated HTTP boundary. Treating closures as free local scope leaks server secrets or crashes with non-serializable payload errors. (framework-internals, baseline-newly) · Anchors: [Under the Hood](https://frontend.rocks/concepts/rpc-server-actions-closures/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/rpc-server-actions-closures/#production-pitfalls) - [Runtime Boundary Validation (Parse, Don't Validate)](https://frontend.rocks/concepts/runtime-boundary-validation.md) ([HTML](https://frontend.rocks/concepts/runtime-boundary-validation/)): Prevents silent TypeError crashes from drifted API payloads and corrupted localStorage by parsing untrusted JSON at I/O boundaries into typed structures without blocking INP. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/runtime-boundary-validation/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/runtime-boundary-validation/#production-pitfalls) - [Prioritized Task Scheduling and scheduler.yield()](https://frontend.rocks/concepts/scheduler-api-yield.md) ([HTML](https://frontend.rocks/concepts/scheduler-api-yield/)): Cooperative main-thread yielding primitive that pauses long JS work for input and rendering, then resumes in a prioritized continuation queue. (js-runtime, interop-experimental) · Anchors: [Under the Hood](https://frontend.rocks/concepts/scheduler-api-yield/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/scheduler-api-yield/#production-pitfalls) - [Scroll-Driven Animations](https://frontend.rocks/concepts/scroll-driven-animations.md) ([HTML](https://frontend.rocks/concepts/scroll-driven-animations/)): animation-timeline: scroll() and view() bind CSS and WAAPI animations directly to scroll progress on the Compositor Thread. (rendering-pipeline, interop-experimental) · Anchors: [Under the Hood](https://frontend.rocks/concepts/scroll-driven-animations/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/scroll-driven-animations/#production-pitfalls) - [Server State Cache Machines (fresh → stale → fetching)](https://frontend.rocks/concepts/server-state-cache-machines.md) ([HTML](https://frontend.rocks/concepts/server-state-cache-machines/)): Stop firing duplicate API requests on every component mount or tab switch. A deterministic cache state machine deduplicates in-flight fetches, serves stale memory in 0 ms, and revalidates in the background. (framework-internals, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/server-state-cache-machines/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/server-state-cache-machines/#production-pitfalls) - [Service Worker Lifecycle](https://frontend.rocks/concepts/service-worker-lifecycle.md) ([HTML](https://frontend.rocks/concepts/service-worker-lifecycle/)): Runs an off-thread programmable network proxy through install, waiting, and activate states—ensuring one consistent asset version per open tab. (network-perf, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/service-worker-lifecycle/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/service-worker-lifecycle/#production-pitfalls) - [Shadow DOM Encapsulation and Event Retargeting](https://frontend.rocks/concepts/shadow-dom-encapsulation.md) ([HTML](https://frontend.rocks/concepts/shadow-dom-encapsulation/)): Isolate component CSS and DOM trees without iframes—Shadow DOM blocks outer selectors, projects light DOM via , and retargets bubbling events to the host. (dom-events, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/shadow-dom-encapsulation/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/shadow-dom-encapsulation/#production-pitfalls) - [SharedArrayBuffer and Atomics Synchronization](https://frontend.rocks/concepts/shared-array-buffer-atomics.md) ([HTML](https://frontend.rocks/concepts/shared-array-buffer-atomics/)): Shared linear memory pages mapped across multiple JS threads, synchronized with hardware atomic operations and futex wait/notify queues. (web-apis, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/shared-array-buffer-atomics/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/shared-array-buffer-atomics/#production-pitfalls) - [Simulated DOM (JSDOM/HappyDOM) vs Real Browser Engines](https://frontend.rocks/concepts/simulated-dom-vs-real-engines.md) ([HTML](https://frontend.rocks/concepts/simulated-dom-vs-real-engines/)): Green JSDOM tests ship broken layouts because Node.js DOM shims lack a layout engine, returning zeros for geometry and ignoring stacking contexts and CORS. (testing-verification, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/simulated-dom-vs-real-engines/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/simulated-dom-vs-real-engines/#production-pitfalls) - [Speculation Rules & Prerendering](https://frontend.rocks/concepts/speculation-rules-prerender.md) ([HTML](https://frontend.rocks/concepts/speculation-rules-prerender/)): Declarative JSON rules that prefetch or fully prerender predicted next navigations in a hidden browsing context, delivering near-instant 0 ms LCP on click. (network-perf, interop-experimental) · Anchors: [Under the Hood](https://frontend.rocks/concepts/speculation-rules-prerender/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/speculation-rules-prerender/#production-pitfalls) - [Stale Closures in Hooks & Callbacks](https://frontend.rocks/concepts/stale-closures-hooks.md) ([HTML](https://frontend.rocks/concepts/stale-closures-hooks/)): Explains how JavaScript lexical closures snapshot primitive state per render, causing timers, listeners, and suppressed dependency arrays to read outdated values. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/stale-closures-hooks/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/stale-closures-hooks/#production-pitfalls) - [Client State Topology: Ephemeral, URL, Server Cache & Persistent](https://frontend.rocks/concepts/state-topology-boundaries.md) ([HTML](https://frontend.rocks/concepts/state-topology-boundaries/)): Eliminates stale data, broken back-button navigation, and redundant re-renders by assigning every piece of UI state to its canonical owner: ephemeral memory, URL search params, a server cache, or IndexedDB. (state-architecture, baseline-widely) · Anchors: [Under the Hood](https://frontend.rocks/concepts/state-topology-boundaries/#under-the-hood), [Production Pitfalls](https://frontend.rocks/concepts/state-topology-boundaries/#production-pitfalls) - [Streaming SSR & Progressive Flushing](https://frontend.rocks/concepts/streaming-ssr-flushing.md) ([HTML](https://frontend.rocks/concepts/streaming-ssr-flushing/)): Streams the HTML and shell immediately over HTTP/2+ while slow backend queries run, then flushes deferred