Skip to main content
InterviewHubPRO
Section Overview
Q2

Question 2 of 50

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

4%
Web Vitals & Performance (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What is Largest Contentful Paint (LCP) and what are its thresholds?

junior Levelweb-vitalsBasic

In Simple Words: LCP measures the time from when the user initiates page loading until the largest image, video thumbnail, or text block within the initial viewport is completely rendered on screen.

LCP Performance Thresholds:

  • Good (Green): $\le 2.5\text{ seconds}$ (Target: 75% of page visits should meet this).
  • Needs Improvement (Orange): Between $2.5\text{s}$ and $4.0\text{s}$.
  • Poor (Red): $> 4.0\text{ seconds}$.

Qualifying LCP Elements:

  • <img> elements.
  • Image elements inside an SVG (<image>).
  • Video poster images or <video> elements.
  • Block-level elements containing large text nodes (e.g. <h1> hero titles).