Skip to main content
XenonStack

Service Design

XenonStack Insights Website Page Speed Optimisation: Core Web Vitals

| Published | Updated

Page speed optimisation: real-user measurement, Core Web Vitals, targeted fixes, faster and steadier pages

Key takeaway

  • Page speed optimisation starts with measuring Core Web Vitals. Learn LCP, INP and CLS targets, what slows pages down and the fixes that matter first.

Page speed is how quickly a web page loads, shows its main content and responds to the user, and Google's Core Web Vitals turn it into three measurable targets: loading, interactivity and visual stability. Improving it means finding which of those three is weak for real visitors, then fixing the cause.

This guide is for web and product teams who own a site's performance. It covers the metrics and thresholds, what usually slows a page, a table of fixes by symptom, how to measure, and where AI agents help. It connects to our notes on performance monitoring and user experience in software product development.

What are Core Web Vitals?

According to web.dev's guide to Web Vitals, Core Web Vitals are a subset of Web Vitals that apply to all web pages. There are three:

Two-column diagram. Measure: collect field data, check LCP, check INP, check CLS. Fix: load hero early, cut long tasks, reserve space, unblock rendering.
MetricWhat it measuresGood threshold on web.dev
Largest Contentful Paint (LCP)Loading: when the main content is renderedWithin 2.5 seconds of when the page first starts loading
Interaction to Next Paint (INP)Interactivity: how quickly the page responds to input200 milliseconds or less
Cumulative Layout Shift (CLS)Visual stability: unexpected movement of content0.1 or less

web.dev suggests judging a page at the 75th percentile of page loads, segmented across mobile and desktop. It also records that INP replaced First Input Delay and became a stable Core Web Vital in 2024. Older advice built around First Input Delay, including the metric lists in many older guides, is therefore out of date.

Why does page speed matter?

Slow pages cost attention. Visitors judge a site by how quickly it shows something useful and how steady it feels while they use it. Use the web.dev thresholds above as your targets rather than a single load-time figure. Precise claims about how many visitors leave after a given delay need their own source, so measure your own audience instead of borrowing a statistic.

What slows a page down?

  • Render-blocking scripts and styles: large CSS files and synchronous scripts in the head delay the first paint. Load what the first screen needs first, and defer the rest.
  • Heavy or late-discovered images: a hero image that the browser finds late, or that is lazy-loaded, delays the largest paint.
  • Slow server response: time to first byte sets the floor for everything that follows. Hosting choice, caching and redirects all affect it.
  • Long tasks on the main thread: too much JavaScript makes the page slow to respond to taps and clicks.
  • Unreserved space: images, ads and injected content with no reserved size push text around and raise layout shift.
  • Hotlinked assets: displaying images hosted on someone else's server ties your speed to theirs and adds load to their server.

How is LCP made up, and where should you look first?

The web.dev guide to optimising LCP splits the metric into four subparts: time to first byte, resource load delay, resource load duration and element render delay. It gives approximate shares of the total, calling them guidelines rather than strict rules.

LCP subpartApproximate share of total LCP
Time to first byteAbout 40%
Resource load delayUnder 10%
Resource load durationAbout 40%
Element render delayUnder 10%

The guide's main advice: make the LCP resource discoverable in the initial HTML, give it high priority, never lazy-load it, keep large stylesheets from blocking rendering, break up long tasks, serve compressed images and fonts from a CDN, and reduce redirects. It also warns that fixing one subpart can simply move time to another, and recommends starting from real-user data.

Which fix suits which symptom?

SymptomLikely causeFirst fix
Slow LCPLate or lazy-loaded hero image, slow serverLoad the hero early with high priority, improve caching and CDN use
Poor INPLong JavaScript tasksSplit long tasks, load less script, defer non-critical code
High CLSMissing dimensions, injected contentReserve space for images, embeds and ads
Slow first paintRender-blocking CSS and scriptsKeep critical CSS small, use defer or async for scripts
Many requestsLots of small filesCombine or remove files, compress and minify what remains

On scripts: async downloads a script in parallel and runs it as soon as it arrives, while defer downloads in parallel and runs it after the HTML has been parsed. Minifying CSS and JavaScript removes whitespace and unused code so files are smaller. You can check the details in each browser vendor's documentation.

How do you measure page speed?

Use two kinds of data. Field data from real visitors, such as the Chrome User Experience Report or your own real-user monitoring, shows what people experience. Lab tools such as Lighthouse reproduce a load under fixed conditions so you can test a fix before it ships. web.dev recommends checking real-user data first to decide where to focus effort.

How do AI agents change page speed work?

Agents can run the audits on a schedule, compare field data against the three thresholds, trace a regression to the release that caused it and open a ticket with the evidence. They need access to performance data and to code only within limits your team sets, and every change they propose should be reviewed. For teams automating this kind of monitoring and testing, ElixirClaw, the AI agents computing platform, is the product to look at.

What should you do first?

  1. Pull real-user LCP, INP and CLS at the 75th percentile for your key pages.
  2. Pick the weakest metric and find its cause using the table above.
  3. Fix the hero image delivery and render-blocking resources first.
  4. Reserve space for images, embeds and ads.
  5. Re-measure after each release and keep the results.

Related reading: the CSS content-visibility property, customer experience versus user experience, Envoy proxy architecture for the proxy layer, interaction design principles, building a recommendation system with AI and our product design and user experience solutions.

To map one decision your performance-monitoring agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is a good page speed?

web.dev sets the good thresholds for Core Web Vitals at an LCP within 2.5 seconds, an INP of 200 milliseconds or less and a CLS of 0.1 or less, judged at the 75th percentile of page loads.

What replaced First Input Delay?

Interaction to Next Paint replaced First Input Delay and became a stable Core Web Vital in 2024, according to web.dev.

What is the fastest way to improve LCP?

Make sure the largest element, often a hero image, is found early in the HTML, given high priority and not lazy-loaded, then check server response time and render-blocking CSS.

What is the difference between async and defer?

Both download a script in parallel. Async runs it as soon as it arrives, while defer waits until the HTML has been parsed.

Should I trust lab scores or real-user data?

Use both. Real-user data shows what visitors experience, while lab tools such as Lighthouse let you test fixes under repeatable conditions.

Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue