ESC

Type to search the knowledge base.

Performance

Guides in Performance. Written like documentation — short paragraphs, real examples, interview-relevant depth.

Core Web Vitals

intermediate

LCP, INP, and CLS — what field data measures, good thresholds, and fixes that actually move the needle (per web.dev guidance).

intermediate

Measuring Performance Mindset

beginner

Measure before optimizing: hypotheses, percentiles, user journeys, and stopping when the metric doesn’t move.

beginner

Lab vs Field Data

intermediate

Lighthouse lab vs CrUX/RUM field: what each is for, how they diverge, and how to use both.

intermediate

LCP Optimization Tactics

intermediate

Deep tactics for Largest Contentful Paint — discovery, priority, bytes, server delay, and render delay — beyond the CWV overview.

intermediate

INP Optimization Tactics

intermediate

Fix Interaction to Next Paint for real — input delay, handler cost, presentation delay, long tasks, and yielding patterns that move field INP.

intermediate

CLS Optimization Tactics

intermediate

Fix cumulative layout shift: dimensions, font metrics, reserved slots, and stable late-loading UI.

intermediate

TTFB and Server Timing

intermediate

Diagnose Time to First Byte with Navigation Timing and break down backend phases via Server-Timing.

intermediate

JavaScript Bundle Budget

intermediate

Set enforceable JS size budgets per route, measure with CI, and cut payload without cargo-cult micro-opts.

intermediate

Tree Shaking Basics

intermediate

Dead-code elimination for ES modules: sideEffects, named imports, and why some libraries won’t shake.

intermediate

Code Splitting Strategies

intermediate

Route, component, and vendor splits: dynamic import(), magic comments, and avoiding over-splitting waterfalls.

intermediate

Image Optimization Formats

beginner

AVIF, WebP, JPEG, PNG: choose formats, quality, and tooling so LCP images stay sharp and small.

beginner

Responsive Images Performance

intermediate

srcset, sizes, and density descriptors so browsers download the right image bytes for each viewport.

intermediate

Font Loading Strategies

intermediate

font-display, preload, subsetting, and metric overrides to balance FOIT/FOUT against CLS and LCP text.

intermediate

Critical CSS Approaches

advanced

Inline above-the-fold CSS, extract critical rules, and avoid shipping megabyte stylesheets on first paint.

advanced

Third-Party Script Cost

intermediate

Measure and contain tags, embeds, and widgets: main-thread cost, facades, consent, and contractual budgets.

intermediate

Long Tasks and Yielding

intermediate

Break up long tasks so INP survives: chunking, scheduler.yield, isInputPending, and framework patterns.

intermediate

scheduler.yield and Scheduling

advanced

scheduler.yield, postTask priorities, and how modern scheduling APIs improve INP over setTimeout hacks.

advanced

Preconnect and DNS Prefetch

intermediate

Warm critical third-party origins with preconnect; use dns-prefetch lightly; don’t shotgun hints.

intermediate

HTTP/2 and HTTP/3 for Frontend

advanced

What H2/H3 change for waterfalls, prioritization, and why domain sharding died — frontend-relevant bits only.

advanced

Compression gzip brotli

beginner

Enable Brotli/gzip for text assets, pick quality levels, and verify Content-Encoding in production.

beginner

Caching Static Assets Fingerprinting

intermediate

Content-hash filenames, long-cache headers, HTML revalidation, and CDN invalidation without stuck users.

intermediate

RUM Real User Monitoring

intermediate

Collect field CWV and custom timings from real sessions: sampling, beacons, privacy, and dashboards.

intermediate

Performance Budgets in CI

intermediate

Encode LCP/size budgets in CI with Lighthouse CI or size-limit so regressions fail pull requests.

intermediate

Avoiding Layout Thrashing

intermediate

Stop forced sync layout loops: batch DOM reads and writes, use rAF, and fix janky measurement code.

intermediate

Virtual Lists Performance

advanced

Render only visible rows: windowing mental model, overscan, scroll issues, and accessibility tradeoffs.

advanced

Memoization Performance Tradeoffs

intermediate

React.memo, useMemo, useCallback, and cache maps: when memoization helps, when it wastes memory and time.

intermediate

Idle Work Scheduling

advanced

requestIdleCallback, idle deadlines, and what work is safe to defer without breaking UX or analytics.

advanced

Network Waterfall Reading

beginner

Read request waterfalls: critical path chains, priority, blocking, and how to shorten discovery delays.

beginner

Lighthouse Score Interpretation

beginner

What the 0–100 Lighthouse score means, metric weights, variance, and how not to game it.

beginner