Web Performance • 8 min read

Core Web Vitals Guide: How to Achieve 90+ PageSpeed Scores

Published: February 05, 2025 • By SEOToolsK Editorial Team

What Are Google Core Web Vitals?

Core Web Vitals are a set of specific real-world user experience metrics defined by Google to measure loading speed, visual stability, and interactive responsiveness:

  • Largest Contentful Paint (LCP): Measures perceived loading speed. Marks the time when the main content of a page has likely loaded. Target: Under 2.5 seconds.
  • Interaction to Next Paint (INP): Measures overall page responsiveness to user interactions (clicks, taps, key presses). Target: Under 200 milliseconds.
  • Cumulative Layout Shift (CLS): Measures visual stability and unexpected layout shifting during page load. Target: Under 0.1.

Top Optimization Techniques for High Performance

  • Minify HTML, CSS, and JS: Strip comments and unnecessary whitespace to reduce byte transfer size.
  • Eliminate Render-Blocking Resources: Load external JavaScript with defer or async attributes so HTML rendering isn't blocked.
  • Preconnect to Critical CDNs: Use <link rel="preconnect" href="..."> for third-party font and CDN origins.
  • Set Explicit Width & Height on Images: Always provide dimension attributes on <img> tags to eliminate CLS layout jumps.

Core Web Vitals Thresholds (Good vs. Needs Improvement vs. Poor)

Google evaluates Core Web Vitals at the 75th percentile of real-user field data (CrUX) across both mobile and desktop devices:

Metric Good (Passing) Needs Improvement Poor (Failing)
LCP (Loading) ≤ 2.5 seconds 2.5s – 4.0 seconds > 4.0 seconds
INP (Interactivity) ≤ 200 milliseconds 200ms – 500 milliseconds > 500 milliseconds
CLS (Visual Stability) ≤ 0.10 0.10 – 0.25 > 0.25
TTFB (Server Response) ≤ 800 milliseconds 800ms – 1800 milliseconds > 1800 milliseconds

How to Optimize Interaction to Next Paint (INP)

In March 2024, Interaction to Next Paint (INP) officially replaced First Input Delay (FID) as a Core Web Vital. While FID only measured the first click on a page, INP measures the latency of all clicks, taps, and keystrokes throughout the entire page visit:

  • Break Up Long JavaScript Tasks: Any synchronous JS task running longer than 50ms blocks the main thread from painting visual feedback. Yield to the main thread using requestAnimationFrame() or setTimeout(..., 0) for heavy computations.
  • Debounce Live Input Handlers: When building real-time calculators, search bars, or formatters, debounce high-frequency input events by 100–150ms on large payloads so typing remains instant.
  • Avoid Excessive DOM Size: Keep total DOM nodes under 1,500 elements to prevent expensive style recalculations upon UI state changes.

Server-Level Caching & Compression (.htaccess / Nginx)

Enabling text compression (Brotli or Gzip) and long-lived browser cache headers reduces repeat-visit transfer sizes by up to 80%:

# Apache .htaccess Example for Gzip & Browser Caching
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/css application/javascript image/svg+xml
</IfModule>
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType text/css "access plus 1 year"
  ExpiresByType application/javascript "access plus 1 year"
  ExpiresByType image/webp "access plus 1 year"
</IfModule>

Frequently Asked Questions

Why is my mobile PageSpeed score lower than my desktop score?

Google Lighthouse simulates mobile tests on a throttled mid-tier smartphone CPU over a slow 4G connection (1.6 Mbps download, 150ms latency), making JavaScript execution time and unoptimized image bytes much more noticeable.

What replaced First Input Delay (FID) in Core Web Vitals?

Interaction to Next Paint (INP) replaced FID in March 2024 because INP evaluates the full lifecycle of all user interactions rather than just the input delay of the very first click.

Do web fonts cause Cumulative Layout Shift (CLS)?

They can if fallback fonts have vastly different metrics. Using font-display: swap with size-adjusted system fallbacks and preconnecting to fonts.gstatic.com minimizes layout shifts.

How much file size does CSS and JS minification save?

Minifying raw CSS and JavaScript typically reduces uncompressed file weight by 20% to 45% by stripping comments, whitespace, and long local identifier names.

Explore Related Free Tools

Try our 100% free client-side utilities with instant real-time results.

View All 120+ Tools