WordPress Core Web Vitals: How to Fix LCP, CLS and INP
SEO

WordPress Core Web Vitals: How to Fix LCP, CLS and INP

Did Search Console tell you that your WordPress Core Web Vitals are failing, or is your Page Experience report full of red? The short answer: first work out which metric is failing and on which device, and only then fix it. LCP, CLS and INP each fail for different reasons, and each has a different fix.

Google states explicitly that these metrics are used by its ranking systems. On the same page it also says that a good report does not guarantee your pages will rank at the top, and that it always tries to show the most relevant content, even when the page experience is weaker. So it is not the only thing that matters, but it is part of how UI affects SEO, and it is something you can measure and fix yourself. Here is how I go through it, in order.

Step one: read the Core Web Vitals report in Search Console correctly

The report lives in Search Console, and its data comes from the Chrome User Experience Report (CrUX). That means it comes from real users who visited your site, not from a lab test. The report is split into mobile and desktop, and sorts URLs into three states: Good, Needs improvement and Poor.

These are the thresholds web.dev defines for each metric:

Metric What it measures Good Poor
LCP How long the largest element in the visible part of the screen takes to appear Up to 2.5 seconds Over 4 seconds
INP How quickly the page responds to a click, tap or keypress Up to 200 milliseconds Over 500 milliseconds
CLS How much the content jumps around while loading Up to 0.1 Over 0.25

The thresholds are measured at the 75th percentile of page loads, separately for mobile and desktop. In practice, it is not enough for the site to be fast on your own computer in the office. Most real visitors need to get a good experience.

Before you start fixing, know three things about the report:

  • The report groups URLs. Google groups pages with a similar experience into one group. If all your product pages are red, the problem is most likely in their template, not in each page separately.
  • A page without enough data will not show up on its own. If there is not enough user data for a group of URLs, Google merges it into one group for the whole domain. If that group does not have enough data either, it is not shown in the report at all, and on a small site this happens quite often.
  • Start with mobile. The reports are separate, and the problems on mobile and desktop are not always the same.

Click the row for the issue to see which URL groups are failing, plus an example URL from each group. You take that example URL to the next step.

Step two: PageSpeed Insights, field data versus lab data

Paste the example URL into PageSpeed Insights. At the top of the report you get field data from CrUX, and below it the Lighthouse lab data. According to Google’s documentation, lab data is collected in a controlled environment, so it is useful for finding problems, while field data is what real users experienced.

The common mistake is chasing the Lighthouse score. The Search Console report is based on field data, so the goal is for the field data to pass the threshold. The lab score helps you understand what is slowing the page down, and its diagnostics section helps you find which element is the LCP and what causes the shifts.

Before you touch any setting, write down the current state: which metric is failing, on which device, in which URL group, and what the field data values are. Without that record, it is hard to know afterwards whether a given change helped, hurt or did nothing. Another habit that saves a lot of headaches: change one thing at a time and check the page after each change, instead of switching on ten options at once and guessing what broke what.

Slow LCP: the main image loads late

The LCP element can be an image or a block of text, for example the big image at the top of the page or the main heading. When the metric is slow, start with the question of when the browser discovers that element and downloads it.

In the diagnostics section of PageSpeed Insights you can see which element was marked as the LCP. If it is an image, check the page source to see whether it has loading="lazy".

These are the things to check and fix:

  • Do not lazy load the LCP image. web.dev says you should never lazy load the LCP image, because it always creates an unnecessary delay. If you turned on lazy loading (LazyLoad) in a caching plugin, make sure the main image of each template is excluded from it.
  • fetchpriority. Since WordPress 6.3, core automatically adds fetchpriority="high" to the image it identifies as the likely LCP image. Even so, check the page source to confirm the attribute is on the image that is actually marked as the LCP.
  • Server response time. web.dev breaks LCP into several parts, and the first one is the time until the first byte arrives from the server (TTFB). If the server is slow, no image optimization will be enough, and this is where page caching and hosting come in.

High CLS: content jumping while the page loads

CLS measures how much the content moves without the visitor asking for it. You know the feeling: you start reading, and suddenly the text drops down because something loaded above it.

These are the causes web.dev lists:

  • Images and videos without defined dimensions, so the browser does not know how much space to reserve for them.
  • Ads, embeds and widgets that change size after loading.
  • Web fonts that make the text reflow when the font is swapped in.
  • Content injected into the page after loading that pushes down whatever is below it, such as a cookie banner or a notice at the top of the page.

To find the culprit, look in the PageSpeed Insights diagnostics for the item about layout shifts. You can also simply load the page on your phone and watch what moves.

The fix starts with giving every image a width and height. If you use WP Rocket, it has an option called Add missing image dimensions that adds the missing attributes to images. For fonts there is a Preload fonts option that preloads the fonts used at the top of the page. For ads and banners, reserve a fixed space in CSS ahead of time, so they fill an existing space instead of pushing content around.

High INP: too much JavaScript

INP became one of the three metrics in March 2024, replacing FID. It measures how much time passes from the visitor’s click until the page shows a response.

According to web.dev, the browser runs JavaScript on the main thread. Loading, parsing and running scripts creates long tasks, and while a long task is running, the browser cannot respond to a click. On a WordPress site this adds up fast: plugins, page builders, chat widgets, pixels and analytics tools.

To check, look at the INP value in the field data of PageSpeed Insights. In the lab data, look in the diagnostics section for items about JavaScript execution time and long tasks.

What you can do:

  • Go through your plugin list and deactivate what you do not use. Every plugin that loads a script on every page adds work.
  • In WP Rocket, the Load JavaScript deferred option makes the browser render the page and load the scripts afterwards. The Delay JavaScript execution option holds back script loading until the visitor’s first interaction.
  • After each change like this, manually test the things that must work: the mobile menu, forms, add to cart.

If you are working on speed as part of a wider plan to bring in traffic, I also wrote a guide on increasing organic traffic.

After the fix: Start Tracking and what to expect

When you finish fixing, go back to the report in Search Console, open the issue and click Start Tracking. Google opens a 28-day monitoring period in which it checks whether the issue still appears.

The field data in PageSpeed Insights is also based on a rolling 28-day window, so a fix you made today will not show up there right away. What works is to fix, confirm in the lab data that the fix actually works, and give the field data time to update. While you wait, it is worth tracking your organic performance in Google Analytics too, and if you are wondering why keywords do not appear in Google Analytics, I wrote a separate guide on that.

When to stop and call an expert

  • Server response time is high even on a fairly empty page, and the problem is probably in the hosting or server settings.
  • You turned on JavaScript options in your caching plugin, something on the site stopped working, and you cannot find what.
  • The site is built on a page builder or a heavy theme, and the problem is in the structure of the page itself, not in a single setting.
  • 28 days have passed since the check, and the issue is still marked Poor despite your fixes.
  • It is a store, and any change to scripts could break the cart or the checkout.

A slow site does not just drop in rankings. It also loses visitors before they even see your content, especially for SEO for service professionals, where the customer searches on Google and expects to reach you by phone within seconds.

If you tried and could not get the metrics to green, I handle this: I diagnose the failing metric, fix it and check that the site keeps working. You can contact me here.

Frequently asked questions

What is Core Web Vitals?

Three metrics Google uses to measure user experience on a page: LCP for how fast the main content loads, INP for how quickly the page responds to interaction, and CLS for visual stability.

Do Core Web Vitals affect Google rankings?

Google says these metrics are used by its ranking systems. It also says a good result does not guarantee a place at the top, and that content relevance comes first.

Why is my PageSpeed Insights score good while Search Console shows a problem?

The score is based on a single lab test, while Search Console is based on real user data from CrUX. Users with slower devices and connections can have a completely different experience.

What happened to FID?

INP replaced FID as a Core Web Vitals metric in March 2024. If you see a guide that talks about FID, it is out of date.

Why are some of my pages missing from the report?

If there is not enough user data for a group of URLs, Google merges it into a group for the whole domain. If there is not enough data there either, the group is not shown in the report. This is common on sites with little traffic.

Is installing a caching plugin enough?

A caching plugin gives you tools, such as deferred JavaScript, removing unused CSS and filling in missing image dimensions. It does not know on its own what the problem is on your site. Start from the failing metric, choose the option that deals with it, and check after each change that the site keeps working.

Do I also need to fix the desktop version?

Yes, if it is failing. The Search Console report shows separate data for mobile and desktop, and the thresholds are measured separately for each. If both fail, deal with each one according to the metric that fails on it.

How long does it take to see an improvement after the fix?

The validation process in Search Console, which starts when you click Start Tracking, monitors the issue for 28 days, and the field data in PageSpeed Insights is based on a rolling 28-day window. So the improvement shows up gradually, not the day after.

Have a project worth talking about?

The call is free, with no commitment 😊