Back to Tech Interviews

Web Performance & Core Web Vitals

190+ Questions covering LCP, INP, CLS, Critical Rendering Path, Resource Hints, Code Splitting, CDN Caching, and DevTools Profiling.

Total: 190 QuestionsLearned: 0 / 190 (0%)
Difficulty Filters

Tools & Options
Showing 190 of 190 questions
Beginner
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).

Beginner
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.

Beginner
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.

Beginner
What is First Input Delay (FID)?
Experience
What is Interaction to Next Paint (INP)?
Beginner
What is First Contentful Paint (FCP)?
Experience
What is Time to First Byte (TTFB)?
Experience
Difference between Lab Data and Field Data?
Experience
What is Total Blocking Time (TBT)?
Advanced
Explain Time to Interactive (TTI).
Advanced
What counts as a 'Long Task' in performance?
Advanced
How is CLS calculated?
Experience
What is the Speed Index?
Beginner
What is Perceived Performance?
Advanced
What is the Rail Model?
Beginner
What is 'DomContentLoaded' event?
Beginner
What is the 'Load' event?
Experience
How does 'Document.readyState' relate to performance?
Experience
What is CrUX (Chrome User Experience Report)?
Experience
What is the 'Performance' API in JS?
Advanced
How to measure LCP using JavaScript?
Advanced
What is navigationStart vs fetchStart?
Advanced
What is the 'Back/forward cache' (bfcache)?
Advanced
How to track CLS in the field?
Experience
What is 'First Paint' vs 'First Contentful Paint'?
Experience
What is User Timing API?
Advanced
How to detect long tasks in JS?
Experience
What is 'Hydration' in the context of SSR?
Advanced
What is 'Server Timing' header?
Beginner
What is a 'Pass' score for LCP?
Advanced
What is 'Cumulative' in CLS?
Experience
How does PageSpeed Insights calculate its score?
Experience
What is the 'DOMContentLoaded' vs 'Load' priority?
Advanced
What is 'Speculative Loading'?
Experience
What is 'Request Idle Callback'?
Experience
What is 'Main Thread' efficiency?
Beginner
What is 'Frame Rate' (FPS)?
Beginner
What is 'Jank'?
Advanced
Difference between Passive and Active event listeners?
Advanced
What is 'Critical Rendering Path'?
Beginner
How to optimize images for the web?
Beginner
What is Lazy Loading?
Beginner
How to implement native lazy loading for images?
Experience
What is the 'srcset' attribute?
Experience
Difference between <picture> and <img> with srcset?
Beginner
What is WebP?
Experience
What is AVIF?
Experience
What is 'Font-display: swap'?
Experience
What is FOIT vs FOUT?
Experience
How to preload critical fonts?
Beginner
What is 'Async' script loading?
Beginner
What is 'Defer' script loading?
Advanced
Explain 'Preload' vs 'Prefetch'.
Experience
What is 'Preconnect'?
Experience
What is the 'DNS-prefetch' utility?
Experience
How to optimize CSS delivery?
Advanced
What is 'Critical CSS'?
Advanced
How to load non-critical CSS asynchronously?
Experience
What is 'Gzip' vs 'Brotli' compression?
Experience
What is 'Module' script loading in modern browsers?
Experience
Explain 'Tree Shaking'.
Experience
What is 'Code Splitting'?
Experience
How to implement code splitting in React?
Experience
What is 'Subresource Integrity' (SRI)?
Beginner
How to optimize SVG performance?
Experience
Difference between inlining and externalizing images?
Advanced
What is 'LCP Image Priority'?
Advanced
What is 'Fetch Priority' API?
Experience
How to optimize Video loading?
Advanced
Explain 'HTTP/2 Push'.
Advanced
What are '103 Early Hints'?
Experience
How to optimize third-party scripts (GTM, Ads)?
Experience
What is 'JavaScript Execution Cost'?
Advanced
How to move JS execution to Web Workers?
Experience
What is 'Bundler Optimization'?
Beginner
Explain 'Minification' vs 'Compression'.
Experience
How to handle large Icon libraries?
Advanced
What is 'Resource Priority' in Chrome?
Beginner
How to audit resource loading?
Experience
Explain 'Payload Budgeting'.
Beginner
What is a CDN (Content Delivery Network)?
Beginner
Explain HTTP Cache-Control header.
Experience
Difference between 'no-cache' and 'no-store'?
Experience
What is 'Etag'?
Beginner
What is 'Last-Modified' header?
Advanced
What is 'stale-while-revalidate' (SWR)?
Advanced
Explain the 'Vary' header.
Advanced
What is 'Immutable' cache directive?
Experience
What is 'Cache Invalidation'?
Experience
Explain HTTP/2 and how it helps performance.
Advanced
What is HTTP/3 (QUIC)?
Advanced
Difference between TCP and UDP?
Experience
What is a Service Worker?
Advanced
Explain 'Cache Aside' vs 'Cache First' strategy.
Experience
What is the 'Cache Storage' API?
Beginner
What is 'Latency' vs 'Bandwidth'?
Advanced
What is 'Head-of-Line Blocking'?
Experience
How to optimize DNS resolution?
Beginner
What is 'Keep-Alive'?
Beginner
What is 'Brotli' vs 'Gzip' again?
Advanced
Explain 'Edge Computing' in CDNs.
Advanced
What is 'TCP Slow Start'?
Advanced
What is 'TLS Handshake' cost?
Experience
Explain 'Pre-flighting' (CORS).
Advanced
How to avoid CORS preflight?
Experience
What is 'Data URI' downside?
Experience
What is 'WebSocket' vs 'SSE' (Server-Sent Events)?
Beginner
Explain 'Fetch' vs 'XHR' performance.
Experience
What is 'Beacon API'?
Beginner
How to reduce 'Redirect' latency?
Advanced
What is 'Connection: Close' header?
Advanced
Explain 'Priority Hints' for fetch.
Experience
What is 'Local Storage' vs 'IndexedDB'?
Beginner
How does 'Network Throttling' help?
Beginner
Explain 'Cold Cache' vs 'Warm Cache'.
Experience
What is 'Web Bundler' Hashing?
Beginner
What is 'Content-Encoding' header?
Advanced
Explain 'Early Data' (TLS 1.3).
Advanced
What is 'OCSP Stapling'?
Beginner
How to check 'Time to Connect' in DevTools?
Beginner
What is the 'DOM' (Document Object Model)?
Experience
What is the 'CSSOM'?
Experience
Explain 'Reflow' (Layout).
Experience
Explain 'Repaint'.
Advanced
How to avoid Reflow and Repaint?
Advanced
What is 'Layout Thrashing'?
Experience
Explain 'RequestAnimationFrame' (rAF).
Advanced
What is 'Will-change' CSS property?
Advanced
What is a 'Compositor Layer'?
Experience
Why is 'Transform' better than 'Top/Left' for animation?
Beginner
How to reduce DOM size?
Beginner
What is 'Virtual DOM'?
Experience
Explain 'Shadow DOM'.
Advanced
What is 'Content-visibility' CSS property?
Advanced
What is 'Contain-intrinsic-size'?
Advanced
What is 'Contain' CSS property?
Experience
How to handle large lists of data?
Beginner
Explain 'InnerHtml' vs 'CreateElement'.
Advanced
What is 'BFC' (Block Formatting Context)?
Beginner
What is 'FOUC' (Flash of Unstyled Content)?
Experience
What is 'GPU Acceleration'?
Advanced
Explain 'Image Decoding'.
Advanced
What is 'Paint Holding'?
Beginner
How to use 'Aspect-Ratio' in CSS for performance?
Experience
What is 'Recalculate Styles'?
Advanced
How to optimize CSS selectors?
Advanced
Explain 'Forced Synchronous Layout'.
Beginner
What is 'Preloading Images' in JS?
Experience
What is 'DocumentFragment'?
Beginner
How to measure FPS in Chrome?
Beginner
What is Google Lighthouse?
Beginner
What is PageSpeed Insights (PSI)?
Experience
Explain the 'Performance' Tab in DevTools.
Experience
What is WebPageTest?
Advanced
What are 'Chrome DevTools Protocol' (CDP)?
Beginner
What is 'WPO' (Web Performance Optimization)?
Experience
Explain 'Synthetic' vs 'Real User' Monitoring.
Beginner
What is 'Waterfall' chart?
Experience
How to find 'Unused JS' in DevTools?
Experience
What is 'Bundlesize' tool?
Experience
Difference between MOBILE and DESKTOP Lighthouse scores?
Beginner
What is 'Cumulative Layout Shift' debug overlay?
Advanced
Explain 'Memory' Tab in DevTools.
Beginner
What is 'Application' Tab useful for?
Beginner
How to simulate 'Offline' profile?
Advanced
What is 'Flame Graph'?
Beginner
How to use 'Search' in DevTools for code?
Beginner
What is 'Audit' in PageSpeed Insights?
Experience
What is 'Request Blocking' feature?
Experience
Explain 'Timeline' view in Performance tab.
Advanced
What is 'Chrome Tracing'?
Experience
Difference between 'PageSpeed Insights' and 'Lighthouse' extension?
Beginner
What is 'Yellow' vs 'Red' tasks in Performance tab?
Advanced
How to use 'Layer' panel in DevTools?
Advanced
What is 'Puppeteer' for performance?
Experience
How to check 'Third-Party' impact in Lighthouse?
Beginner
What is 'Web Vitals' extension?
Advanced
Explain 'Paint Profiler' in performance recordings.
Beginner
What is 'Resource Summary' audit?
Experience
How to audit for 'Accessibility' performance?
Experience
What is 'Sentry' or 'LogRocket' relative to perf?
Beginner
How to find the 'Largest Contentful Paint' element?
Experience
What is 'Local Overrides' for testing?
Advanced
How to use 'Protocol Monitor'?
Beginner
What is 'Web Core Vitals' in Search Console?
Experience
Explain 'User Flow' audits in Lighthouse.
Beginner
What is 'GSC' (Google Search Console)?
Advanced
How to identify 'CLS' culprits in a trace?
Experience
What is 'Treemap' in Lighthouse?
Beginner
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.

Continuous learning: Practice daily, mark completed questions as learned, and revisit difficult concepts.Explore All Interview Tracks →

Explore Related Tools

Hand-picked utilities and calculators related to this tool.

Related Tools