How to improve Core Web Vitals on a website (2026)
Quick Answer
To improve Core Web Vitals, first measure real problems with PageSpeed Insights and your own analytics, then fix the biggest causes in order: slow loading of the main content, layout shifts, and delayed interactivity. In practice, that usually means optimising images and fonts, removing render-blocking and unused code, reducing heavy JavaScript, improving server and caching performance, and testing changes on real pages before rolling them out.
Overview
Core Web Vitals are Google’s user-focused performance signals for how quickly a page feels usable and visually stable. The exact metrics and thresholds can evolve, so treat official guidance as the source of truth and use your own site data wherever possible. The most effective way to improve them is not to apply random speed tweaks, but to diagnose which pages and templates are failing, identify the specific assets or scripts causing delays, and fix the highest-impact items first. For most sites, the biggest gains come from reducing the amount of work the browser must do before showing meaningful content and becoming responsive. That often includes compressing and sizing images properly, deferring non-critical JavaScript, removing unused CSS, reserving space for images and embeds to prevent layout shifts, and using caching or a CDN so files arrive faster. Server response also matters: a slow hosting stack, inefficient database queries, or poor cache configuration can undermine every front-end optimisation. Use both lab tools and field data. Lab tools help you reproduce problems quickly, while field data shows what real visitors experience across devices and connection types. Make changes gradually, monitor them after deployment, and prioritise fixes on your most important templates such as the homepage, product pages, article pages, and checkout.
Who this is for
Website owners, developers, SEO specialists, and content teams responsible for site speed, search visibility, and user experience on content, ecommerce, or business websites.
What you’ll need
- Access to Google PageSpeed Insights and Google Search Console
- Browser developer tools such as Chrome DevTools
- Access to your CMS, codebase, tag manager, or hosting control panel
- Ability to change image handling, scripts, caching, and page templates
- A staging environment or backup before making performance changes
Before you start
Identify which templates matter most to the business and which pages have the worst real-user performance. Check whether you are seeing field data issues, lab-only issues, or both. Make sure performance testing is done on representative pages, not just one URL, and avoid making many unrelated changes at once so you can see what actually helped.
Step-by-step
- 1
Measure current performance and prioritise the worst pages
Run key URLs through PageSpeed Insights and review the Core Web Vitals and diagnostics. In Google Search Console, look at the Core Web Vitals report to see patterns by page group. Test important templates such as homepage, category pages, articles, product pages, and checkout. Record which issue appears most often: slow largest visible content, layout shifts, or delayed interactivity.
Why: You cannot fix Core Web Vitals efficiently without knowing which pages fail and why. Different templates often have different bottlenecks, so a homepage fix may not help product or article pages.
- 2
Improve the loading of the main visible content
Find the element identified as the main content candidate in your testing tool, often a hero image, banner, heading block, or featured media. Compress and resize large images, serve modern image formats if supported by your stack, and avoid loading oversized media on mobile. Preload only genuinely critical assets such as the main image or key font where appropriate. Remove unnecessary redirects and reduce server delay with caching, CDN use, and efficient page generation.
Why: Core Web Vitals strongly reflect how fast users see the main content. If the browser must wait for a large image, slow server response, or a chain of blocking resources, the page feels slow even if everything else is technically loaded later.
- 3
Reduce render-blocking CSS and JavaScript
Audit your CSS and JavaScript bundles and remove code that is not needed on the page. Inline only minimal critical CSS if your setup supports it safely, and load the rest in a non-blocking way. Defer or delay non-essential scripts such as chat widgets, heatmaps, social embeds, and some marketing tags until after the main content is available or after user interaction where acceptable. Replace heavy plugins or libraries with lighter alternatives if they provide limited value.
Why: Browsers often pause page rendering while they download and process blocking styles and scripts. Cutting this work lets the page appear sooner and reduces CPU pressure on lower-powered devices.
- 4
Prevent layout shifts
Set explicit width and height or reserve aspect-ratio space for images, video, ads, iframes, and embedded widgets. Avoid inserting banners, cookie notices, or promo bars above existing content after the page starts rendering unless space was already reserved. Load web fonts in a way that reduces visible jumps, and test dynamic components such as consent tools, sticky headers, and personalisation blocks across screen sizes.
Why: Unexpected movement frustrates users and can cause accidental clicks. Layout stability depends on the browser knowing how much space elements need before they finish loading.
- 5
Improve responsiveness by cutting main-thread work
Use browser performance tools to identify long tasks and script-heavy interactions. Break up expensive JavaScript, reduce third-party scripts, lazy-load below-the-fold components, and avoid running large amounts of code on page load. Where possible, render more content on the server or use simpler client-side components. Review sliders, animations, large DOM trees, and complex filtering tools, which often create interaction delays.
Why: A page can look loaded but still feel unresponsive if the browser is busy processing JavaScript. Reducing main-thread work improves responsiveness and interaction quality.
- 6
Strengthen hosting, caching, and delivery
Enable page caching and asset caching where suitable, use a CDN for static assets and global delivery, and check whether your hosting stack or application is slow under load. Optimise database-heavy pages, reduce plugin overhead, and make sure compression and modern transport protocols are correctly configured by your hosting provider or platform. If you use a CMS, audit themes and plugins for performance impact.
Why: Front-end optimisation helps only so much if the server is slow or every visit regenerates pages inefficiently. Better delivery reduces waiting time before the browser can start rendering.
- 7
Retest, deploy carefully, and monitor real-user results
After each meaningful change, test again in lab tools and then monitor field data in Search Console and any real-user monitoring you use. Roll out changes in stages if possible, especially on high-traffic or revenue-critical pages. Keep notes on what changed and whether it improved the target metric. Recheck after theme updates, app installs, new ad tags, or major content redesigns.
Why: Some changes improve one metric but worsen another, and real-user data can lag behind deployment. Ongoing monitoring prevents regressions and helps you focus on changes that produce measurable gains.
Why this works
Core Web Vitals improve when the browser has less to download, parse, lay out, and execute before the page becomes visible, stable, and responsive. The most reliable gains come from removing unnecessary work and making unavoidable work happen later or more efficiently.
Common mistakes to avoid
- Testing only the homepage and assuming the whole site behaves the same way
- Relying only on lab scores and ignoring real-user field data
- Installing too many optimisation plugins that overlap or conflict
- Deferring every script blindly, including scripts needed for core functionality
- Compressing images without fixing their displayed dimensions or responsive sizing
- Adding pop-ups, consent banners, or ad slots without reserving space for them
- Making many performance changes at once so you cannot tell what helped
- Ignoring mobile performance and testing mainly on a fast desktop connection
Troubleshooting
Scores vary between tests
Use several runs, compare the same page type, and separate lab fluctuations from persistent field-data problems. Network conditions, caching, and third-party scripts can change results.
A page looks fast but still fails responsiveness metrics
Profile JavaScript execution in browser dev tools and reduce long tasks, heavy components, and third-party code that blocks the main thread after rendering.
Layout shift happens only after cookie or promo banners appear
Reserve space for those elements before they render or change their placement so they do not push existing content down.
Image optimisation plugin is active but pages are still slow
Check whether the actual rendered image dimensions are too large, whether hero images are lazy-loaded incorrectly, and whether server response or scripts are the bigger bottleneck.
Improvement in testing tools does not show in Search Console yet
Field data updates over time and depends on real traffic. Keep monitoring and make sure the fixes reached all affected templates and devices.
Compare your options
Plugin-based optimisation
Best for: CMS users who need faster wins without major code changes
Pros: Quick to implement, can handle caching and asset optimisation, often suitable for smaller teams
Cons: Can create conflicts, may not solve underlying theme or script problems, quality varies by plugin and platform
Developer-led code and template optimisation
Best for: Custom sites or businesses with recurring performance issues
Pros: More control, better long-term results, can remove root causes in templates and scripts
Cons: Needs technical skill, takes longer, may require design or workflow changes
CDN and hosting upgrades
Best for: Sites with slow global delivery or weak server performance
Pros: Improves delivery speed and caching, helps many pages at once
Cons: Does not fix poor front-end code by itself, may need careful configuration
| Option | Best for | Pros | Cons |
|---|---|---|---|
| Plugin-based optimisation | CMS users who need faster wins without major code changes | Quick to implement, can handle caching and asset optimisation, often suitable for smaller teams | Can create conflicts, may not solve underlying theme or script problems, quality varies by plugin and platform |
| Developer-led code and template optimisation | Custom sites or businesses with recurring performance issues | More control, better long-term results, can remove root causes in templates and scripts | Needs technical skill, takes longer, may require design or workflow changes |
| CDN and hosting upgrades | Sites with slow global delivery or weak server performance | Improves delivery speed and caching, helps many pages at once | Does not fix poor front-end code by itself, may need careful configuration |
Alternatives
- Use a lighter theme or rebuild heavy page templates
- Move from a plugin-heavy CMS setup to a leaner stack
- Adopt server-side rendering or static generation where appropriate
- Trim third-party marketing and tracking tools to only the ones that are essential
Pro tips
- Optimise your highest-traffic and highest-value templates first rather than chasing perfect scores everywhere
- Do not lazy-load above-the-fold hero images that are central to the first screen
- Audit third-party scripts regularly; many remain installed long after their business value ends
- Test logged-out pages as well as logged-in or preview states if your site behaves differently
- Keep design and content teams involved so new banners, widgets, and media uploads do not undo performance work
Safety notes
- Back up the site or use staging before changing caching, minification, script loading, or theme files
- Check critical user journeys after performance changes, especially forms, checkout, search, login, and consent tools
- Be careful when delaying scripts tied to accessibility, security, or legal compliance features
Legal & regulatory notes
If you change how consent banners, analytics tags, advertising scripts, or accessibility-related components load, make sure the final behaviour still meets the privacy, accessibility, and consumer requirements that apply in your jurisdiction and sector.
What this guide does not cover: This guide covers practical improvement strategy and common fixes, not framework-specific coding examples, hosting-provider-specific configuration, or exhaustive debugging for every CMS and tech stack.
Cost considerations
Some improvements cost little beyond time, such as image compression, script cleanup, and better caching. Larger gains may require developer work, better hosting, a CDN, or replacing slow themes, plugins, or third-party services.
Frequently asked questions
Can I improve Core Web Vitals without a developer?+
Sometimes, especially on a CMS with good caching, image optimisation, and a lightweight theme. But persistent issues caused by theme code, JavaScript, server configuration, or complex third-party tools usually need technical help.
Which matters more: lab scores or real-user data?+
Real-user data matters most for actual user experience and Google reporting. Lab tools are still very useful because they help you reproduce problems and diagnose what to fix.
Will a CDN fix Core Web Vitals on its own?+
Not usually. A CDN can improve delivery and caching, but it will not remove bloated JavaScript, unstable layouts, or heavy page templates.
Should I remove all third-party scripts?+
No. Keep the ones that provide clear value, but audit each script carefully. If a tool adds noticeable delay and limited benefit, it is a strong candidate for removal or delayed loading.
How long does it take to see results?+
Lab improvements appear immediately after deployment and retesting. Field-data reporting usually takes longer because it depends on real visitors using the updated pages over time.
Sources & references
Guidance on this page is traced to documented sources. Last checked 25 September 2026.
- Google Search Central - Core Web Vitals · official
What Core Web Vitals are, why they matter, and where Google provides official guidance and reporting context.
- PageSpeed Insights · official
Use of lab and field data to diagnose page performance issues and identify problem resources and opportunities.
- web.dev - Optimize Largest Contentful Paint · industry
Practical methods for improving loading of the main visible content, including image, preload, and server-related considerations.
- web.dev - Optimize Cumulative Layout Shift · industry
How to reduce unexpected layout movement by reserving space and handling dynamic content carefully.
- web.dev - INP · industry
Why interaction responsiveness depends on reducing main-thread work and long tasks.
- Chrome DevTools - Performance reference · official
How to profile long tasks, rendering, and script execution when diagnosing responsiveness problems.
The overall optimisation approach is stable, but Google’s metrics, browser behaviour, and best-practice implementation details can change over time.