Performance
Guides in Performance. Written like documentation — short paragraphs, real examples, interview-relevant depth.
Core Web Vitals
intermediateLCP, INP, and CLS — what field data measures, good thresholds, and fixes that actually move the needle (per web.dev guidance).
intermediate
Measuring Performance Mindset
beginnerMeasure before optimizing: hypotheses, percentiles, user journeys, and stopping when the metric doesn’t move.
beginner
Lab vs Field Data
intermediateLighthouse lab vs CrUX/RUM field: what each is for, how they diverge, and how to use both.
intermediate
LCP Optimization Tactics
intermediateDeep tactics for Largest Contentful Paint — discovery, priority, bytes, server delay, and render delay — beyond the CWV overview.
intermediate
INP Optimization Tactics
intermediateFix 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
intermediateFix cumulative layout shift: dimensions, font metrics, reserved slots, and stable late-loading UI.
intermediate
TTFB and Server Timing
intermediateDiagnose Time to First Byte with Navigation Timing and break down backend phases via Server-Timing.
intermediate
JavaScript Bundle Budget
intermediateSet enforceable JS size budgets per route, measure with CI, and cut payload without cargo-cult micro-opts.
intermediate
Tree Shaking Basics
intermediateDead-code elimination for ES modules: sideEffects, named imports, and why some libraries won’t shake.
intermediate
Code Splitting Strategies
intermediateRoute, component, and vendor splits: dynamic import(), magic comments, and avoiding over-splitting waterfalls.
intermediate
Image Optimization Formats
beginnerAVIF, WebP, JPEG, PNG: choose formats, quality, and tooling so LCP images stay sharp and small.
beginner
Responsive Images Performance
intermediatesrcset, sizes, and density descriptors so browsers download the right image bytes for each viewport.
intermediate
Font Loading Strategies
intermediatefont-display, preload, subsetting, and metric overrides to balance FOIT/FOUT against CLS and LCP text.
intermediate
Critical CSS Approaches
advancedInline above-the-fold CSS, extract critical rules, and avoid shipping megabyte stylesheets on first paint.
advanced
Third-Party Script Cost
intermediateMeasure and contain tags, embeds, and widgets: main-thread cost, facades, consent, and contractual budgets.
intermediate
Long Tasks and Yielding
intermediateBreak up long tasks so INP survives: chunking, scheduler.yield, isInputPending, and framework patterns.
intermediate
scheduler.yield and Scheduling
advancedscheduler.yield, postTask priorities, and how modern scheduling APIs improve INP over setTimeout hacks.
advanced
Preconnect and DNS Prefetch
intermediateWarm critical third-party origins with preconnect; use dns-prefetch lightly; don’t shotgun hints.
intermediate
HTTP/2 and HTTP/3 for Frontend
advancedWhat H2/H3 change for waterfalls, prioritization, and why domain sharding died — frontend-relevant bits only.
advanced
Compression gzip brotli
beginnerEnable Brotli/gzip for text assets, pick quality levels, and verify Content-Encoding in production.
beginner
Caching Static Assets Fingerprinting
intermediateContent-hash filenames, long-cache headers, HTML revalidation, and CDN invalidation without stuck users.
intermediate
RUM Real User Monitoring
intermediateCollect field CWV and custom timings from real sessions: sampling, beacons, privacy, and dashboards.
intermediate
Performance Budgets in CI
intermediateEncode LCP/size budgets in CI with Lighthouse CI or size-limit so regressions fail pull requests.
intermediate
Avoiding Layout Thrashing
intermediateStop forced sync layout loops: batch DOM reads and writes, use rAF, and fix janky measurement code.
intermediate
Virtual Lists Performance
advancedRender only visible rows: windowing mental model, overscan, scroll issues, and accessibility tradeoffs.
advanced
Memoization Performance Tradeoffs
intermediateReact.memo, useMemo, useCallback, and cache maps: when memoization helps, when it wastes memory and time.
intermediate
Idle Work Scheduling
advancedrequestIdleCallback, idle deadlines, and what work is safe to defer without breaking UX or analytics.
advanced
Network Waterfall Reading
beginnerRead request waterfalls: critical path chains, priority, blocking, and how to shorten discovery delays.
beginner
Lighthouse Score Interpretation
beginnerWhat the 0–100 Lighthouse score means, metric weights, variance, and how not to game it.
beginner