← Back to Module 06

Module 06: Web Vitals Test

Instructions:
  1. LCP is measured automatically from the hero gradient below (the largest visible element)
  2. CLS is triggered 1.5 seconds after load — a "late-loading banner" appears and pushes content down
  3. INP is measured when you click the buttons below — each does a different amount of work
  4. Watch the dashboard update in real time as each vital is recorded
  5. Open DevTools Console to see collector logs

Core Web Vitals (Live)

LCP
--
milliseconds
waiting
CLS
--
score
waiting
INP
--
milliseconds
waiting

LCP Trigger: Large Hero Element

This 600x400px gradient is the largest contentful element on the page. The browser will report its render time as the LCP value. On a real site, this would typically be a hero image, a large heading, or a prominent video poster.

Largest Contentful Paint Element

CLS Trigger: Late-Loading Banner

After 1.5 seconds, a "late-loading" banner will appear above the blue box, pushing it down and causing a layout shift. This simulates a common CLS problem: ads, cookie banners, or dynamically injected content that shifts existing page content.

Late-loading advertisement / cookie banner injected!
This content will be pushed down when the banner appears above it.

INP Trigger: Interactive Buttons

Click these buttons to generate interactions with different processing times. The "fast" button does minimal work. The "medium" button loops 5 million iterations. The "slow" button loops 50 million iterations, blocking the main thread and creating a measurably high INP value.

Event Log

Real-time log of vital updates from the collector:

Waiting for vitals data...