Topic 06 · SEO

Performance and Core Web Vitals

A fast site keeps its visitors and is easier to crawl. This topic measures Core Web Vitals on real-user data, then addresses compression, caching, scripts, fonts and images.

Priority
Important
Applies to
All sites
Practical guides
27 written out of 27
0/27 done

Free, no account: your progress is saved in this browser.

Download this topic (PDF) 5 pages · 116 KB

Where to start

Three checks with a strong effect, doable before the rest.

  1. 06.01 Analyze PageSpeed Insights and Lighthouse Easy · 1 to 2 h
  2. 06.08 Enable Brotli/Gzip Easy · 15 to 30 min
  3. 06.18 Optimize the LCP image without lazy loading Intermediate · 1 to 3 h

The 27 checks of this topic

Click a check to read its guide. Tick the box once it is verified on your site.

Who
Difficulty

1Measure Core Web Vitals

0/7 done
  1. 06.01
    Analyze PageSpeed Insights and Lighthouse

    Run PageSpeed Insights and Lighthouse on your key templates, tell real-user data from lab tests apart, then turn the results into a prioritized action list.

    Who: Developer Marketing

    Easy 1 to 2 h
  2. 06.02
    Analyze real-user CrUX data

    Read your site's real-user CrUX data in PageSpeed Insights, Search Console, CrUX Vis, the API or BigQuery, and know what to do when there is none.

    Who: Developer Marketing

    Intermediate 1 to 2 h
  3. 06.03
    Target LCP ≤ 2.5 s at the 75th percentile

    Identify the LCP element of each template, measure its four phases and apply the right lever to get under 2.5 s at the 75th percentile on mobile.

    Who: Developer

    Advanced 1 to 5 days
  4. 06.04
    Target INP ≤ 200 ms at the 75th percentile

    Find slow interactions in the field, reproduce them, then cut input delay, processing and presentation to hold an INP of 200 ms at p75.

    Who: Developer

    Advanced 2 to 10 days
  5. 06.05
    Target CLS ≤ 0.1 at the 75th percentile

    Locate layout shifts and fix their causes (media without dimensions, ads, banners, fonts) to hold a CLS of 0.1 at p75.

    Who: Developer

    Intermediate 1 to 3 days
  6. 06.06
    Target TTFB ≤ 800 ms as a benchmark

    Measure TTFB, break it down into redirects, connection and page generation, then bring it under 800 ms on Apache, Nginx, Cloudflare, AWS or WordPress.

    Who: Developer System administrator

    Intermediate 2 h to 3 days
  7. 06.27
    Diagnose INP with Long Animation Frames (LoAF)

    Use the Long Animation Frames API and the web-vitals library to find out which script, yours or a third party's, is hurting INP for real visitors.

    Who: Developer

    Advanced 1 to 2 days

2Speed up server and caching

0/5 done
  1. 06.07
    Optimize hosting and CDN

    Choose hosting close to your visitors, enable HTTP/2, HTTP/3 and TLS 1.3, then put a CDN in front of the site: Cloudflare, CloudFront or Front Door.

    Who: System administrator Developer Executive

    Intermediate 2 h to 2 days
  2. 06.08
    Enable Brotli/Gzip

    Enable Brotli or Gzip compression of text files on Apache, Nginx, Cloudflare, AWS, Plesk, cPanel or WordPress, then check that it works.

    Who: Developer System administrator

    Easy 15 to 30 min
  3. 06.09
    Configure browser and server caching

    Set Cache-Control, ETag and page caching on Apache, Nginx, LiteSpeed, Cloudflare, CloudFront, Varnish, Plesk, cPanel, WordPress, Laravel or Next.js.

    Who: Developer System administrator

    Intermediate 1 to 4 h
  4. 06.15
    Optimize database queries

    Find slow or excessive SQL queries and fix them: EXPLAIN, indexes, N+1, object caching, on MySQL, PostgreSQL, WordPress, Laravel and Symfony.

    Who: Developer System administrator

    Advanced 1 to 3 days
  5. 06.26
    Make pages eligible for the back/forward cache (bfcache)

    Test whether your pages are eligible for the back/forward cache (bfcache), remove the blockers (unload, no-store, open connections) and measure the result.

    Who: Developer

    Intermediate 2 h to 1 day

3Trim CSS and JavaScript

0/6 done
  1. 06.10
    Minify CSS and JavaScript

    Minify your CSS and JavaScript files at build time or from your CMS: Vite, webpack, esbuild, WordPress, Shopify, PrestaShop, Magento, Drupal.

    Who: Developer

    Easy 30 min to 2 h
  2. 06.11
    Remove unused CSS/JS

    Measure unused CSS and JavaScript with Chrome's Coverage tool, then remove, split or load on demand the code the page does not need.

    Who: Developer

    Advanced 1 to 5 days
  3. 06.12
    Reduce render-blocking resources

    Find the stylesheets and scripts that block the first render, then defer, split or inline them on WordPress, Shopify, Laravel or Next.js.

    Who: Developer

    Intermediate 2 h to 2 days
  4. 06.13
    Defer non-essential scripts

    Load non-essential scripts after rendering with defer, async or on-demand loading, on WordPress, Shopify, Laravel, Next.js and other platforms.

    Who: Developer

    Intermediate 1 to 4 h
  5. 06.14
    Limit third-party scripts

    Inventory third-party scripts, remove the useless ones and load the rest at lower cost: facades, Zaraz, Partytown, settings by CMS and framework.

    Who: Developer Marketing

    Intermediate 2 h to 1 day
  6. 06.21
    Reduce DOM complexity

    Measure the size and depth of the DOM, then slim it down: pagination, flatter markup, menus, page builders, on common CMSs and frameworks.

    Who: Developer

    Intermediate 2 h to 2 days

4Optimize fonts, images and preloading

0/6 done
  1. 06.16
    Optimize fonts (WOFF2, font-display)

    Serve your fonts as WOFF2 from your own domain, set font-display and preload the critical font: code for servers, CMSs and common frameworks.

    Who: Developer

    Intermediate 1 to 3 h
  2. 06.17
    Preload only critical resources

    Keep preload, preconnect and Early Hints for critical resources discovered late: tags, Link headers and settings by server, CDN, CMS and framework.

    Who: Developer

    Intermediate 1 to 2 h
  3. 06.18
    Optimize the LCP image without lazy loading

    Make the LCP image load first: an img tag in the HTML, no lazy loading, fetchpriority high, with the code for each common CMS and framework.

    Who: Developer

    Intermediate 1 to 3 h
  4. 06.19
    Lazy-load offscreen content

    Only load offscreen images, iframes and videos as the visitor scrolls near them, with loading lazy and the settings specific to each CMS and framework.

    Who: Developer

    Easy 30 min to 2 h
  5. 06.20
    Reserve space for media and ads

    Reserve space for images, videos, iframes, ads and banners with width, height, aspect-ratio and min-height to get rid of page jumps.

    Who: Developer

    Easy 1 to 4 h
  6. 06.25
    Preload likely navigations with Speculation Rules

    Declare Speculation Rules to prefetch or prerender the next pages, exclude URLs with side effects and check the result in Chrome.

    Who: Developer

    Intermediate 1 to 3 h

5Test and hold the budget

0/3 done
  1. 06.22
    Test before and after cookie consent

    Measure performance with the banner shown, after acceptance and after refusal using DevTools, Lighthouse and WebPageTest, then close the gap while staying compliant.

    Who: Developer Marketing

    Intermediate 2 to 4 h
  2. 06.23
    Test on a slow mobile connection

    Test your pages on a slow network and a modest phone with DevTools, Lighthouse, WebPageTest and a real device, then decide what to fix first.

    Who: Developer Marketing

    Easy 1 to 2 h
  3. 06.24
    Set a performance budget

    Set numeric limits per template (metrics, weight, requests) and a rule for when they are exceeded, then check them automatically with Lighthouse CI.

    Who: Developer Marketing Executive

    Intermediate 1 to 2 days, then ongoing