Skip to main content
InterviewHubPRO
Section Overview
Q10

Question 10 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

20%
Next.js & App Router (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

Why should you use Next.js Image Optimization (`<Image />`) over standard `<img>`?

junior LevelPerformanceDocker & Containers

In Simple Words: The next/image component automatically optimizes images for web performance:

  1. Format Optimization: Converts JPEG/PNG to modern WebP or AVIF formats based on browser support.
  2. Responsive Resizing: Generates multiple resolution variants and sets srcset so mobile devices don't download 4K desktop images.
  3. Prevents Layout Shifts (CLS): Requires explicit width/height or fill to reserve space in the layout before the image downloads.
  4. Lazy Loading: Defers loading images until they enter the viewport (unless flagged with priority).