Web vitals
Core Web Vitals rated like Google rates them, the elements behind slow page loads, and a prompt for your agent.
The Web vitals page shows how fast your pages feel on real visits. It rates LCP, INP and CLS the way Google does, by page and by device, and names the element behind each slow page load with where its time went. Each fix is ranked by the page loads it slows, and one button copies the list as a prompt for your coding agent. Web vitals come with Insight and Foresight.
Turn it on
Add data-vitals to the snippet.
<script defer src="https://cdn.ultanimus.com/s.js" data-site="YOUR_SITE_ID" data-vitals></script>With the Next.js or React package, pass the vitals prop.
<Analytics site="YOUR_SITE_ID" vitals />The script then measures every page load. A number measures a share instead, from 1 to 100: data-vitals="25" or vitals={25} measures one in four. A busy site can lower it and keep the 75th percentile steady. Each visitor counts for at most 10 page loads of a page per day.
The measuring code is a separate file of 1 KB gzipped, and only measured page loads download it.
The numbers
| Number | What it is | Good | Poor |
|---|---|---|---|
| LCP, largest paint | The time until the biggest image or text block shows | 2.5 s or less | Over 4 s |
| INP, interaction | The time the page takes to answer the slowest click, tap or key press | 200 ms or less | Over 500 ms |
| CLS, layout shift | How much the page moves while people read it, with no unit | 0.1 or less | Over 0.25 |
| FCP, first paint | The time until anything shows | 1.8 s or less | Over 3 s |
| TTFB, server response | The time until the first byte of the page's HTML arrives | 800 ms or less | Over 1.8 s |
Each number is the 75th percentile: three page loads in four score better. Google rates pages the same way, with the same thresholds. A site passes Core Web Vitals when LCP, INP and CLS are all good. When nobody clicked, tapped or typed, INP has no value and the site is rated on LCP and CLS.
Each card shows the share of page loads that were good, needed work or were poor, and an arrow against the period before.
What to fix first
The page looks at the elements behind slow page loads. An element gets a fix when its own 75th percentile is past good, or when it slowed a quarter of its page loads. For each of LCP, INP and CLS, the three elements with the most slow page loads make the list, ranked by how many page loads they slowed.
| Finding | What it names | The fix it picks |
|---|---|---|
| Largest paint | The image or text block LCP waited for, and its file | The phase that took longest. A slow server gets edge caching, a file found late gets a preload, a heavy file gets a smaller format, and a late render gets fewer render-blocking files |
| Slow interaction | The element people clicked, tapped or typed into, and the event | Waiting for the main thread means long tasks to break up, slow handlers mean work to defer, and a slow next frame means smaller page updates |
| Layout shift | The element that moved most | Space reserved with width and height, aspect-ratio or a min-height |
| Slow server | The site, when TTFB is past good and no LCP finding already blames the server | Edge caching and less work before the first byte |
Copy the fix prompt copies the findings as a brief for a coding agent, with the slowest pages and how to check the work. An agent connected through MCP can read the same numbers itself with the get_web_vitals tool, and in a terminal ultanimus vitals --prompt prints the prompt.
The rest of the page
- By day. The 75th percentile of each day for any of the five metrics, with your annotations marked, so a jump lines up with the release that caused it.
- Devices. LCP, INP and CLS on phones, desktops and tablets.
- Pages. Pages with the most slow page loads first. A page load is slow when its LCP, INP or CLS is past good.
- Largest paint. The elements LCP waited for. A bar splits an average page load into the server's first byte, the wait before the browser found the file, the download, and the render after it.
- Slow interactions. The elements behind the slowest interaction of each page load. A bar splits an average one into waiting for the main thread, running your event handlers, and drawing the next frame.
- Layout shifts. The element that moved most in the worst burst of shifts on each page load.
The range in the header picks 7, 30 or 90 days. Measured page loads are kept for 90 days.
One page
Open a page in the Pages list to narrow the whole report to that page's loads. A chip in the header names the page, and its cross goes back to every page. The filter lives in the address as ?page=/pricing, so you can bookmark it or send it. A path matches exactly, without its query string.
On Foresight
- Browsers and countries. Beside Devices, each browser and country with LCP, INP and CLS at the 75th percentile and the share of its page loads that were good on all three. A row needs 50 measured page loads. The 10 busiest rows show, and the footer counts the rest.
- Before and after. Pick an annotation from the range, such as a release, and the card compares the same span of time before it and after it, up to now. Each metric shows its 75th percentile on both sides and the share of good page loads moving from one to the other. A side needs 50 page loads before it is rated. The span stays inside the 90 days kept, so an annotation from 60 days ago compares 30 days on each side. With the page filter on, it compares that page.
How it measures
The numbers follow Google's definitions, with two differences:
- INP is the slowest interaction on the page. Chrome skips one in fifty on pages with more than 50 interactions, so a very busy page can read a little higher here.
- Each page load reports once, when the visitor first leaves the page or switches tabs, so an interaction after the visitor comes back to the tab does not count.
Browsers measure different things. Chrome and Edge measure all five. Firefox measures LCP, INP, FCP and TTFB, and Safari measures FCP and TTFB, plus LCP and INP from Safari 26. A browser that cannot measure a metric leaves it out rather than counting it as zero. Elements show as short CSS paths, such as main>section.hero>img.
What a measured page load sends
The path of the page, the five timings, the times the LCP file started and finished downloading, how long the slowest interaction waited and ran, and the size of the worst layout shift. It names the LCP element and its file, the element and event of the slowest interaction, and the element that moved most. File addresses keep the host and path only. IDs and classes that look like record IDs, such as #order-8f3a9b2c1d4e5f60, are dropped before anything is stored.
The stored sample keeps the device, browser and country, like a pageview, and nothing that identifies the visitor. Privacy and data covers the rest of what the script sends.
Limits
Measured page loads do not count toward your plan's events. Each month, an organization stores at most as many as its plan has events, apart from the page loads it measures for Load, and drops the rest until the next month starts. Every plan collects them, so a site that moves up from Glance has its numbers ready.