Skip to content
Speed and performance5 min read

How to improve Core Web Vitals

Short answer

Core Web Vitals are three Google metrics measured on real visitors: LCP (the main content appears within 2.5 seconds), INP (the page responds to taps and clicks within 200 milliseconds) and CLS (layout shift below 0.1). Improve LCP with page caching and a prioritized hero image, INP by cutting JavaScript, and CLS by reserving space for images, ads and fonts.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Before you start
  2. Step by step
  3. Troubleshooting
  4. On ArabyHost

Core Web Vitals turn “is this site fast?” into three numbers measured on real visitors. Google judges each one at the 75th percentile of page loads, so the site must be good for most visitors, not just on your office Wi-Fi.

Metric What it measures Good Poor
LCP (Largest Contentful Paint) When the biggest image or text block appears ≤ 2.5 s > 4 s
INP (Interaction to Next Paint) How quickly the page reacts to taps, clicks and typing ≤ 200 ms > 500 ms
CLS (Cumulative Layout Shift) How much content jumps around while loading ≤ 0.1 > 0.25

Before you start

  • Your site added to Google Search Console (see setting up Search Console).
  • WordPress admin access with the LiteSpeed Cache plugin installed.
  • A backup, because JavaScript and CSS optimizations can break layouts.

Step by step

1. Find your real data and the element to fix

In Search Console open Experience » Core Web Vitals. It groups URLs that share a problem, for example “LCP issue: longer than 2.5s (mobile)”. Open one example URL in PageSpeed Insights and read:

  • the field data at the top, for each metric;
  • the diagnostic that names the LCP element (often the hero image or the page title);
  • the list of layout shift culprits for CLS.

A new or low-traffic site may have no field data. Use the lab results and Chrome DevTools » Performance instead.

2. Improve LCP

LCP is the sum of server response time, the delay before the main image starts loading, its download time, and rendering.

  • Cut server time. Enable page caching in LiteSpeed Cache » Cache so pages are served without running PHP. A slow TTFB delays everything after it.
  • Never lazy-load the LCP image. Lazy loading the hero image makes the browser wait before fetching it. In LiteSpeed Cache » Page Optimization » Media Settings, keep Lazy Load Images on but exclude the hero image under Media Excludes, or let the VPI (viewport images) feature skip images visible on load.
  • Give the hero image priority. WordPress adds fetchpriority="high" to the likely LCP image automatically; for custom templates, write it yourself:
<img src="/img/hero-1200.webp" width="1200" height="630"
     fetchpriority="high" alt="Hero image description">
  • Preload CSS background images, which the browser discovers late: <link rel="preload" as="image" href="/img/hero.webp" fetchpriority="high">.
  • Remove render-blocking CSS. Page Optimization » CSS Settings » Load CSS Asynchronously inlines the critical CSS and loads the rest later. This option and VPI rely on LiteSpeed’s QUIC.cloud service to generate the needed data.
  • Replace hero sliders with one static image. Sliders load several images and a script before the first slide appears.

Image size and format matter too; see optimizing images.

3. Improve INP

INP is slow when the browser’s main thread is busy running JavaScript at the moment the visitor taps.

  • Remove scripts you don’t need: popups, sliders, extra tracking tags, chat widgets on every page. Each plugin that loads JavaScript site-wide adds to the problem.
  • Defer or delay JavaScript. In Page Optimization » JS Settings, set Load JS Deferred to Deferred, or Delayed to load scripts only after the first interaction. Test menus, forms and checkout afterwards, and exclude any script that breaks.
  • Load third-party tags once, ideally through a single tag manager, and drop duplicates.
  • Lighten the page. Very large pages, often from page builders with deeply nested sections, make every interaction slower. In Elementor, containers produce less markup than nested sections and columns.
  • For your own code, show feedback first and let the browser paint before heavy work:
button.addEventListener('click', async () => {
  showSpinner();                                  // visible feedback first
  await new Promise(r => setTimeout(r, 0));       // let the browser paint
  runHeavyWork();
});

4. Improve CLS

  • Set width and height on every image and video, so the browser reserves space. WordPress does this for media library images; LiteSpeed Cache’s Add Missing Sizes option covers others.
  • Reserve space for ads, embeds and banners:
.ad-slot { min-height: 250px; }
.video-embed { aspect-ratio: 16 / 9; width: 100%; }
  • Don’t insert content above what’s already visible, such as a cookie bar or announcement that pushes the page down. Overlay it at the bottom instead.
  • Tame font swaps. Preload the main font, and if the swap from the fallback font causes a visible jump, use font-display: optional or match the fallback’s size with size-adjust.
  • Animate with transform, not top, left, width or height.

5. Verify and validate

Re-test the example URLs in PageSpeed Insights. Then in Search Console open the issue and click Validate Fix. Because field data covers 28 days, the report turns green gradually.

Troubleshooting

  • Good on desktop, poor on mobile: phones have slower CPUs, so JavaScript costs more there. Always test and fix on mobile first.
  • CLS appears only in field data: the shift happens after scrolling or interaction, for example ads or embeds lazy-loaded without reserved space.
  • LCP got worse after enabling lazy load: the hero image is being lazy-loaded; exclude it.
  • Delayed JavaScript breaks the menu or forms: exclude those scripts, or switch back to Deferred.
  • “Not enough data” in Search Console: traffic is too low for field data; rely on lab tests until it grows.

More general fixes are in the website speed guide.

On ArabyHost

The web server is LiteSpeed, and LiteSpeed Cache is available with one-click WordPress and WooCommerce installs, so cached pages are served directly by the server, which keeps server response time low, the base of a good LCP. PHP 8.1, 8.2 and 8.3 are available from cPanel, opened with one click from the Araby Panel. The data center is in Germany; if many of your visitors are far from Europe, a CDN for images and static files helps LCP for them. See the WordPress hosting page for plan details.

FAQ

How long until Search Console shows the improvement?

Field data is a rolling 28-day window of real visits, so improvements appear gradually over about four weeks. After fixing an issue, click Validate Fix in the Search Console report to start tracking it.

Do Core Web Vitals affect Google rankings?

They're part of Google's page experience signals, but relevant, helpful content matters far more. Passing them won't lift a weak page to the top, but it helps among similar results and keeps visitors from leaving a slow page.

My lab score is 95 but Core Web Vitals fail. Why?

The lab test is a single simulated load on one device, while field data comes from real phones and networks, including slow ones, and from interactions the lab never performs. INP in particular can only be measured in the field.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.