Web Performance & Core Web Vitals
190+ Questions covering LCP, INP, CLS, Critical Rendering Path, Resource Hints, Code Splitting, CDN Caching, and DevTools Profiling.
Difficulty Filters
Tools & Options
What are Core Web Vitals?
Core Web Vitals are a set of specific factors that Google considers important in a webpage's overall user experience. They consist of three specific page speed and user interaction measurements: Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS).
Explain Largest Contentful Paint (LCP).
LCP measures loading performance. To provide a good user experience, LCP should occur within 2.5 seconds of when the page first starts loading. It marks the point in the page load timeline when the page's main content has likely loaded.
Explain Cumulative Layout Shift (CLS).
CLS measures visual stability. To provide a good user experience, pages should maintain a CLS of 0.1. or less. It identifies how much the visible content of a page moves around during the loading phase.
What is First Input Delay (FID)?
What is Interaction to Next Paint (INP)?
What is First Contentful Paint (FCP)?
What is Time to First Byte (TTFB)?
Difference between Lab Data and Field Data?
What is Total Blocking Time (TBT)?
Explain Time to Interactive (TTI).
What counts as a 'Long Task' in performance?
How is CLS calculated?
What is the Speed Index?
What is Perceived Performance?
What is the Rail Model?
What is 'DomContentLoaded' event?
What is the 'Load' event?
How does 'Document.readyState' relate to performance?
What is CrUX (Chrome User Experience Report)?
What is the 'Performance' API in JS?
How to measure LCP using JavaScript?
What is navigationStart vs fetchStart?
What is the 'Back/forward cache' (bfcache)?
How to track CLS in the field?
What is 'First Paint' vs 'First Contentful Paint'?
What is User Timing API?
How to detect long tasks in JS?
What is 'Hydration' in the context of SSR?
What is 'Server Timing' header?
What is a 'Pass' score for LCP?
What is 'Cumulative' in CLS?
How does PageSpeed Insights calculate its score?
What is the 'DOMContentLoaded' vs 'Load' priority?
What is 'Speculative Loading'?
What is 'Request Idle Callback'?
What is 'Main Thread' efficiency?
What is 'Frame Rate' (FPS)?
What is 'Jank'?
Difference between Passive and Active event listeners?
What is 'Critical Rendering Path'?
How to optimize images for the web?
What is Lazy Loading?
How to implement native lazy loading for images?
What is the 'srcset' attribute?
Difference between <picture> and <img> with srcset?
What is WebP?
What is AVIF?
What is 'Font-display: swap'?
What is FOIT vs FOUT?
How to preload critical fonts?
What is 'Async' script loading?
What is 'Defer' script loading?
Explain 'Preload' vs 'Prefetch'.
What is 'Preconnect'?
What is the 'DNS-prefetch' utility?
How to optimize CSS delivery?
What is 'Critical CSS'?
How to load non-critical CSS asynchronously?
What is 'Gzip' vs 'Brotli' compression?
What is 'Module' script loading in modern browsers?
Explain 'Tree Shaking'.
What is 'Code Splitting'?
How to implement code splitting in React?
What is 'Subresource Integrity' (SRI)?
How to optimize SVG performance?
Difference between inlining and externalizing images?
What is 'LCP Image Priority'?
What is 'Fetch Priority' API?
How to optimize Video loading?
Explain 'HTTP/2 Push'.
What are '103 Early Hints'?
How to optimize third-party scripts (GTM, Ads)?
What is 'JavaScript Execution Cost'?
How to move JS execution to Web Workers?
What is 'Bundler Optimization'?
Explain 'Minification' vs 'Compression'.
How to handle large Icon libraries?
What is 'Resource Priority' in Chrome?
How to audit resource loading?
Explain 'Payload Budgeting'.
What is a CDN (Content Delivery Network)?
Explain HTTP Cache-Control header.
Difference between 'no-cache' and 'no-store'?
What is 'Etag'?
What is 'Last-Modified' header?
What is 'stale-while-revalidate' (SWR)?
Explain the 'Vary' header.
What is 'Immutable' cache directive?
What is 'Cache Invalidation'?
Explain HTTP/2 and how it helps performance.
What is HTTP/3 (QUIC)?
Difference between TCP and UDP?
What is a Service Worker?
Explain 'Cache Aside' vs 'Cache First' strategy.
What is the 'Cache Storage' API?
What is 'Latency' vs 'Bandwidth'?
What is 'Head-of-Line Blocking'?
How to optimize DNS resolution?
What is 'Keep-Alive'?
What is 'Brotli' vs 'Gzip' again?
Explain 'Edge Computing' in CDNs.
What is 'TCP Slow Start'?
What is 'TLS Handshake' cost?
Explain 'Pre-flighting' (CORS).
How to avoid CORS preflight?
What is 'Data URI' downside?
What is 'WebSocket' vs 'SSE' (Server-Sent Events)?
Explain 'Fetch' vs 'XHR' performance.
What is 'Beacon API'?
How to reduce 'Redirect' latency?
What is 'Connection: Close' header?
Explain 'Priority Hints' for fetch.
What is 'Local Storage' vs 'IndexedDB'?
How does 'Network Throttling' help?
Explain 'Cold Cache' vs 'Warm Cache'.
What is 'Web Bundler' Hashing?
What is 'Content-Encoding' header?
Explain 'Early Data' (TLS 1.3).
What is 'OCSP Stapling'?
How to check 'Time to Connect' in DevTools?
What is the 'DOM' (Document Object Model)?
What is the 'CSSOM'?
Explain 'Reflow' (Layout).
Explain 'Repaint'.
How to avoid Reflow and Repaint?
What is 'Layout Thrashing'?
Explain 'RequestAnimationFrame' (rAF).
What is 'Will-change' CSS property?
What is a 'Compositor Layer'?
Why is 'Transform' better than 'Top/Left' for animation?
How to reduce DOM size?
What is 'Virtual DOM'?
Explain 'Shadow DOM'.
What is 'Content-visibility' CSS property?
What is 'Contain-intrinsic-size'?
What is 'Contain' CSS property?
How to handle large lists of data?
Explain 'InnerHtml' vs 'CreateElement'.
What is 'BFC' (Block Formatting Context)?
What is 'FOUC' (Flash of Unstyled Content)?
What is 'GPU Acceleration'?
Explain 'Image Decoding'.
What is 'Paint Holding'?
How to use 'Aspect-Ratio' in CSS for performance?
What is 'Recalculate Styles'?
How to optimize CSS selectors?
Explain 'Forced Synchronous Layout'.
What is 'Preloading Images' in JS?
What is 'DocumentFragment'?
How to measure FPS in Chrome?
What is Google Lighthouse?
What is PageSpeed Insights (PSI)?
Explain the 'Performance' Tab in DevTools.
What is WebPageTest?
What are 'Chrome DevTools Protocol' (CDP)?
What is 'WPO' (Web Performance Optimization)?
Explain 'Synthetic' vs 'Real User' Monitoring.
What is 'Waterfall' chart?
How to find 'Unused JS' in DevTools?
What is 'Bundlesize' tool?
Difference between MOBILE and DESKTOP Lighthouse scores?
What is 'Cumulative Layout Shift' debug overlay?
Explain 'Memory' Tab in DevTools.
What is 'Application' Tab useful for?
How to simulate 'Offline' profile?
What is 'Flame Graph'?
How to use 'Search' in DevTools for code?
What is 'Audit' in PageSpeed Insights?
What is 'Request Blocking' feature?
Explain 'Timeline' view in Performance tab.
What is 'Chrome Tracing'?
Difference between 'PageSpeed Insights' and 'Lighthouse' extension?
What is 'Yellow' vs 'Red' tasks in Performance tab?
How to use 'Layer' panel in DevTools?
What is 'Puppeteer' for performance?
How to check 'Third-Party' impact in Lighthouse?
What is 'Web Vitals' extension?
Explain 'Paint Profiler' in performance recordings.
What is 'Resource Summary' audit?
How to audit for 'Accessibility' performance?
What is 'Sentry' or 'LogRocket' relative to perf?
How to find the 'Largest Contentful Paint' element?
What is 'Local Overrides' for testing?
How to use 'Protocol Monitor'?
What is 'Web Core Vitals' in Search Console?
Explain 'User Flow' audits in Lighthouse.
What is 'GSC' (Google Search Console)?
How to identify 'CLS' culprits in a trace?
What is 'Treemap' in Lighthouse?
What is the ultimate goal of Web Performance Tools?
Technical Interview Mastery Blueprint
Proven methodologies and frameworks to succeed in technical and architecture rounds.
1. The Engineering STAR Technique
When responding to architectural or situational questions, structure your answer using Situation, Technical Constraint, Action, and Measurable Result. Rather than jumping straight to syntax, articulate the business problem, why certain patterns (e.g. caching, queuing, immutability) were selected over alternatives, and what latency or throughput improvements were achieved.
2. Defending Architectural Trade-Offs
Senior interviewers evaluate how you weigh trade-offs. Always explain why you chose an approach: e.g., memory overhead vs CPU cycle speed, consistency vs availability (CAP theorem), or normalized schemas vs denormalized fast reads. Stating the drawbacks of your own proposal demonstrates maturity and production experience.
3. Clean Code & Edge-Case Proactivity
In live-coding rounds, communicate your thinking aloud before typing. State edge cases explicitly: null or undefined inputs, extreme boundary values, concurrency races, and network timeouts. Writing modular, well-named functions with deterministic unit tests separates junior candidates from staff-level engineers.
4. Antipatterns to Avoid
Avoid reciting memorized definitions without practical context. Never dismiss non-functional requirements such as security (CSRF, injection, token rotation), observability (logging, metrics), and accessibility (ARIA, semantic standards). Always ask clarifying scope questions before writing complex implementations.
Explore Related Tools
Hand-picked utilities and calculators related to this tool.
