How to pass Core Web Vitals on a vibe coded site
PageSpeed shows red and Search Console lists poor pages. What Core Web Vitals measure, why vibe coded sites fail them, and the fixes for each one.

You ran your site through PageSpeed Insights and got a wall of red. Or Search Console sent you to its Core Web Vitals report, with a list of URLs marked poor. The site feels quick on your laptop, and the report says otherwise.
Core Web Vitals are three measures of how a page feels to the people loading it: how fast the main content shows, how quickly the page answers a tap, and whether the layout jumps around. A site built with an AI coding tool often fails the first and the third for the same few reasons. This post explains what each measure means, which numbers to trust, and the fixes for each one, written so you can hand them to your coding tool without going to a developer.
What Core Web Vitals measure
Google's web.dev guide names three metrics and the score each one should reach. Our Core Web Vitals entry has the short version.
The three Core Web Vitals
| What it measures | Good | |
|---|---|---|
| Largest Contentful Paint (LCP) | Loading: when the biggest image or text block shows | 2.5 seconds or less |
| Interaction to Next Paint (INP) | Interactivity: how fast the page responds to a tap or click | 200 milliseconds or less |
| Cumulative Layout Shift (CLS) | Visual stability: how much the content moves while it loads | 0.1 or less |
The guide also says how to judge a site: at "the 75th percentile of page loads, segmented across mobile and desktop devices." So a page passes when three in four visits meet the mark, with phones and computers counted separately.
Do they matter for search?
Google says: "We highly recommend site owners achieve good Core Web Vitals for success with Search." It adds that good scores, with other parts of page experience, fit "what our core ranking systems seek to reward."
Google's page experience guide sets the limit on that: "Google Search always seeks to show the most relevant content, even if the page experience is sub-par." It also says "There is no single signal."
So speed will not lift a thin page over a useful one. It matters most between pages that answer the question equally well, and it matters to every visitor who waits. If Google does not have your pages in its index at all, fix that first. Why search engines skip your vibe coded pages and crawled, currently not indexed cover it.
Two kinds of numbers: real visitors and a lab test
PageSpeed Insights shows two sets of numbers, and they often disagree.
The top part is field data from real Chrome users, "powered by the Chrome User Experience Report" over "the previous 28-day collection period." The lower part is a Lighthouse test, run "in a simulated environment" on one load. When a page has "too few samples from real users," PageSpeed shows the whole site's numbers instead, or none.
The field numbers are the ones Search Console reports. The web.dev guide says the Chrome User Experience Report "powers tools like Chrome DevTools, PageSpeed Insights, and Search Console's Core Web Vitals report." It also notes that Lighthouse cannot measure INP, so the lab test shows Total Blocking Time in its place.
Use the lab test to find causes and check a fix before you ship it. Use the field numbers to judge whether visitors got a faster page.
If you build on Lovable, its review no longer gives you these numbers. Its SEO guide says "The SEO & AI search review no longer runs Lighthouse audits, so it no longer reports page speed scores." Its advice: "For page speed and accessibility audits, run Google PageSpeed Insights on your published URL."
Read your Core Web Vitals
- Not done yet: PageSpeed Insights on the home page and your busiest page, phone view first
- Not done yet: The Core Web Vitals report in Search Console, for groups of failing pages
- Not done yet: Note which metric fails: LCP, INP or CLS
- Not done yet: Run the lab test again after each fix, then wait for field data to follow
Why vibe coded sites fail
Three habits of generated code show up again and again in these reports.
The page is built in the browser. Many vibe coded sites send an almost empty HTML file and build the page with JavaScript. Our client-side rendering entry explains the pattern.
Our study of 517 vibe coded home pages shows how common it is. 184 of them had a main heading in Google's first look. Once the code runs, 498 did.
web.dev's LCP guide says the main image must be "discoverable in the initial HTML document response". An image that JavaScript adds later is, in its words, "a classic sign of a site that relies heavily on client-side rendering." The browser cannot start downloading it until the code has loaded and run.
Images arrive with no size. A generated img tag often has a source and nothing else, so the browser does not know how much room to save. The text below jumps when the image lands. That is layout shift.
The bundle is large. Every package the tool added ships to the visitor. web.dev's INP guide names the time spent loading that code as a cause of long tasks, the stretches when the page cannot answer a tap.
Fix LCP: show the main content sooner
The web.dev guide on LCP gives these steps:
- Never lazy-load the main image. The guide says "Never lazy-load your LCP image". Generated code often puts
loading="lazy"on every image, the hero too. - Raise its priority. Add
fetchpriority="high"to the hero image. Only that one, because "setting a high priority on more than one or two images makes priority setting unhelpful". - Put it in the HTML. The image should be in the page your server sends, not added by code later. On a site built in the browser, that means building pages on the server or at build time. The Vite and React SEO guide covers pre-building the routes you know, and the JavaScript SEO guide for vibe coded sites compares the ways to do it.
- Shrink the file. Use AVIF or WebP, serve the size the screen needs, and compress it.
Fix CLS: keep the layout still
web.dev's CLS guide starts with images: "Always include width and height size attributes on your images and video elements." The CSS aspect-ratio property does the same job. Then:
- Save space for content that arrives late. A banner, a cookie notice or an embed that loads after the page should have a box of fixed height waiting for it.
- Watch your web fonts. The guide looks at the two common ways of loading a web font and warns: "Both approaches can cause layout shifts." Test the page with each font you load.
Fix INP: answer taps faster
INP gets worse when the main thread is busy. web.dev's INP guide says to "break up the work in event callbacks into separate tasks", so the browser can draw between them. It adds: "Yielding indiscriminately is better than not yielding at all." It names two more causes. One is code loading at the start: "One thing that can extend an interaction's input delay while a page loads is script evaluation." The other is a large page, since "rendering work tends to scale with increasing DOM size."
On a vibe coded site, the quick wins are often removing packages nobody uses and loading heavy widgets, such as a chat bubble or a map, only when someone opens them.
Check this site for Core Web Vitals problems. Report first, and change nothing until I say yes. 1. LCP: find the largest image or text block on the home page and on [your busiest page]. Is it in the HTML the server sends, or added by JavaScript? Does it have loading="lazy"? Does it have fetchpriority="high"? Is it AVIF or WebP? 2. CLS: list every img, video and iframe with no width and height or aspect-ratio. List anything that loads late above the fold, such as banners or embeds, with no space saved for it. How are web fonts loaded? 3. INP: list the largest packages in the bundle and what uses them. Flag packages nothing imports. Flag click handlers that do heavy work before the screen updates. For each problem, propose the smallest change and say which metric it helps.
Paste it in your tool, opened in your site's repository.
How Vunora checks page speed
Vunora's SEO checklist has a group called Speed, which asks: "Do your pages load fast and stay still while they load?" Two of its checks measure Core Web Vitals:
Vunora's two speed checks
| Passes when | Where the number comes from | |
|---|---|---|
| Pages load fast (LCP) | 2.5 s or less at p75 | Real visitors over the last 28 days |
| Layout stays still (CLS) | 0.1 or less at p75 | Real visitors over the last 28 days |
The numbers come from your own visitors, through Vunora's visitor tracker. The app's setup text for a site with no build step reads: "Paste this into the head of every page. It needs no build step and no package." For a site Vunora imported, it reads: "The import already baked this site into lib/vunora.ts. Import it once from your root layout and redeploy."
Until enough visitors arrive, the check waits and says so: "Not checked: not enough visitors yet", followed by the count so far out of 50 visits. After that, a pass reads "Pages load in", then the time for 75% of visitors and the number of visits over the last 28 days, then "2.5 s or less is good." A slow one says "Google wants 2.5 s or less", and adds "Above 4 s is poor." when it is past that line. The layout check follows the same pattern with 0.1 and 0.25.
The SEO Overview's Speed card shows Loading (LCP), Layout shift (CLS) and Response (INP) side by side. Before any visitor reports, it says "Visitors' browsers have not reported speed yet."
A third check in the group, "Images use WebP or AVIF", lists the large images still in JPEG, PNG or GIF on up to 50 live pages. The checklist walkthrough shows where each result appears.
Where this stops
- Vunora reports speed, it does not fix it. The speed checks have no fix button today. Hand the result and the prompt above to your coding tool.
- The numbers need traffic. With fewer than 50 visits in 28 days, the checks wait. PageSpeed Insights' lab test works on any page in the meantime.
- Vunora's numbers are your visitors', not Google's. Google's field data comes from the Chrome User Experience Report. The two can differ.
- Vunora never hosts your site and cannot change how it renders. Changes land in your repository as a commit or a pull request, and your host deploys them.
Questions
Do Core Web Vitals affect my Google ranking?
Google says it highly recommends good Core Web Vitals "for success with Search", and that they match what its ranking systems reward. It also says it shows the most relevant content even when page experience is poor. Treat speed as one factor, after useful content and pages Google can index.
Why does PageSpeed Insights say there is no data for my site?
The field data comes from real Chrome users, over 28 days. A new or quiet site has too few visits, so PageSpeed falls back to the whole site's numbers or shows none. The lab test below it still works.
My lab score is good but Search Console says poor. Which is right?
Search Console. It reports what real visitors had over 28 days, on their own phones and networks. The lab test runs one load on a simulated device, and it cannot measure INP at all.
Which metric should I fix first?
The one that fails on phones for the most pages. On a vibe coded site it is often LCP, from a hero image added by JavaScript or lazy-loaded, and CLS, from images with no size.
How long until the report turns green?
The field data covers 28 days, so a fix shows in full about four weeks after it ships. Run the lab test in the meantime to confirm the fix worked.
Sources
- web.dev, Web Vitals, read December 1, 2026: https://web.dev/articles/vitals
- Google Search Central, understanding Core Web Vitals and Google search results, read December 1, 2026: https://developers.google.com/search/docs/appearance/core-web-vitals
- Google Search Central, understanding page experience, read December 1, 2026: https://developers.google.com/search/docs/appearance/page-experience
- PageSpeed Insights, about PageSpeed Insights, read December 1, 2026: https://developers.google.com/speed/docs/insights/v5/about
- web.dev, Largest Contentful Paint guide, read December 1, 2026: https://web.dev/articles/optimize-lcp
- web.dev, Cumulative Layout Shift guide, read December 1, 2026: https://web.dev/articles/optimize-cls
- web.dev, Interaction to Next Paint guide, read December 1, 2026: https://web.dev/articles/optimize-inp
- Lovable, SEO and AI search guide, read December 1, 2026: https://docs.lovable.dev/tips-tricks/seo-geo
Terms in this post
New posts by email
One email when a post goes up, about editing and publishing a vibe coded site.


