Skip to main content
InterviewHubPRO
Section Overview
Q43

Question 43 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

86%
Next.js & App Router (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

Core Web Vitals Optimization in Next.js: Slashing LCP, INP, and CLS.

senior LevelPerformanceSystem Design

In Simple Words:

  1. LCP (Largest Contentful Paint): Add priority to above-the-fold hero images (<Image priority ... />). Preconnect to image CDN origins.
  2. INP (Interaction to Next Paint): Break up heavy synchronous CPU JavaScript execution using startTransition and scheduler.yield().
  3. CLS (Cumulative Layout Shift): Always specify width and height on images; use next/font for zero-CLS font swapping.