XenonStack

Enterprise Digital Platform

XenonStack Insights Web Performance Optimization: Tools and Core Web Vitals

and | Published | Updated

Web Performance Optimization: Tools and Core Web Vitals
10:53
Web performance optimization: Core Web Vitals, tools and fixes, shown as a four-layer stack from measurement to fast, stable pages

Key takeaway

  • Web performance optimization explained: Core Web Vitals thresholds, measurement tools, LCP, INP and CLS fixes, and how enterprises govern speed.

Web performance optimization is the work of making pages load, respond and stay stable quickly enough that visitors finish what they came to do. The industry yardstick is Core Web Vitals. According to web.dev, a page is good when, at the 75th percentile of real page loads, Largest Contentful Paint (LCP) is 2.5 seconds or less, Interaction to Next Paint (INP) is 200 milliseconds or less and Cumulative Layout Shift (CLS) is 0.1 or less.

The practical order is simple: measure with real-user data, fix the slowest part of the page first, and set budgets so the gain is not lost at the next release. This guide covers the metrics, the tools, the fixes that matter most and how engineering leaders keep performance under control. It builds on our guides to user experience design and user experience in software product development.

What is web performance optimization?

MDN describes web performance as being about user experience and perceived performance, which means understanding the critical rendering path and how users perceive speed, not only raw timings (source: MDN web performance basics). Optimization is the practice of improving those outcomes through smaller payloads, earlier loading of what matters, less blocking work and better caching, then checking the result against measured data.

What are the Core Web Vitals thresholds?

Each metric is assessed at the 75th percentile of page loads, split by mobile and desktop, and a page passes only when all three are good (source: web.dev Core Web Vitals). The boundaries below come from the individual web.dev metric pages.

MetricWhat it measuresGoodNeeds improvementPoor
LCPLoading: when the largest visible element renders2.5 s or less2.5 s to 4.0 sover 4.0 s
INPResponsiveness to clicks, taps and key presses across the visit200 ms or lessConfirm on the official pageConfirm on the official page
CLSVisual stability: unexpected layout movement0.1 or less0.1 to 0.25over 0.25

INP is the successor to First Input Delay (FID), per web.dev INP. LCP boundaries are from web.dev LCP and CLS boundaries from web.dev CLS. Thresholds are revised from time to time, so confirm them on web.dev before setting targets.

Why does website performance matter to the business?

Speed is part of the first impression, and it shapes whether visitors read, sign up or buy. Slow pages also frustrate returning users, and Google Search uses Chrome field data to inform its page experience signals (source: Chrome UX Report). Measure the effect on your own funnel instead: compare conversion and bounce for fast and slow sessions in your analytics.

Business areaHow performance shows upWhat to track
AcquisitionPage experience data can inform search visibilityCore Web Vitals pass rate for key landing pages
ConversionSlow or shifting pages interrupt forms and checkoutsFunnel completion split by LCP and INP bands
RetentionSluggish interactions discourage return visitsReturn rate and task completion on slow versus fast sessions
CostHeavy pages and scripts raise bandwidth and engineering timePage weight, third-party script count, CDN offload

How do you measure web performance?

Start by separating field data (what real users experience) from lab data (a controlled test). The Chrome User Experience Report (CrUX) is a field dataset built from real Chrome users, and it covers the Core Web Vitals. Lab tools help you diagnose and reproduce problems before release.

Two-column diagram: left lists LCP, INP, CLS and Lighthouse score with good thresholds; right lists the main fix for each, ending in budgets and monitoring.
ToolTypeBest used for
PageSpeed InsightsField and labQuick check of a URL on mobile and desktop, with diagnostics
Lighthouse (see scoring guide)LabRepeatable audits in the browser or CI
Chrome UX ReportFieldTrends from real Chrome users across your origin
WebPageTest, Firefox Developer Tools, real-user monitoringLab and fieldTesting from different locations and devices, profiling and custom RUM (all listed by MDN)

Lighthouse reports a performance score from 0 to 100, where 90 to 100 is good, 50 to 89 needs improvement and 0 to 49 is poor. In its current weighting (Lighthouse 10) the score combines Total Blocking Time at 30 per cent, Largest Contentful Paint and Cumulative Layout Shift at 25 per cent each, and First Contentful Paint and Speed Index at 10 per cent each (source: Chrome for Developers). Lighthouse is a lab score, so it will not always match field results. Our guide to Google Lighthouse shows how to run it.

Practical rules for testing: pick one tool for trend tracking, because scores are calculated differently between tools; test both cached and uncached loads; and do not chase a perfect score, since the aim is a good experience for real users.

Which fixes improve Core Web Vitals most?

How do you improve LCP?

web.dev splits LCP into four sub-parts: time to first byte, resource load delay, resource load duration and element render delay. Its guidance is that roughly 40 per cent of LCP should be time to first byte, roughly 40 per cent resource load duration and under 10 per cent each for the other two, as guidelines rather than strict rules (source: Optimize LCP). Find which sub-part is largest before you change anything, because speeding up one part can simply move the delay elsewhere.

LCP sub-partTypical fixes (per web.dev)
Time to first byteReduce redirects, cache at a CDN, avoid cache-busting URL parameters
Resource load delayMake the LCP resource discoverable in the initial HTML, preload it, set fetchpriority="high"
Resource load durationCompress and modernise the file, use a CDN, serve from the same origin, set efficient caching
Element render delayReduce or inline render-blocking CSS, defer JavaScript, use server-side rendering or prerendering, break up long tasks

Never lazy-load the LCP image. Lazy loading suits content outside the first viewport.

How do you improve INP?

INP covers the latency of clicks, taps and key presses across the whole visit, so the main lever is less JavaScript running on the main thread. MDN advises using only as much JavaScript as the current page needs, and using async or defer for scripts that should not block rendering. Audit third-party tags first, because they are often the largest block of code you do not control.

How do you improve CLS?

web.dev lists the usual causes: images or videos without dimensions, fonts that render at a different size from their fallback, third-party ads or widgets that resize, and content inserted above existing content. The fix is to reserve space for anything that loads late and to animate with transform rather than properties such as height, width or top (source: web.dev CLS). Setting font-display: swap, as MDN suggests, stops fonts blocking rendering, though you should check the effect on layout shift.

Which general techniques does MDN recommend?

TechniqueWhat to doSource
CompressionCompress text resources with gzip or Brotli; WOFF and WOFF2 fonts are already compressedMDN
Non-blocking CSS and JSInline critical above-the-fold CSS, load the rest without blocking, use async or defer on scriptsMDN
Lazy loadingUse the loading attribute on images, iframes, video and audio outside the viewportMDN
Resource hintsUse preconnect, dns-prefetch, prefetch and preload where they helpMDN
CDN and HTTP/2Serve through a CDN and use HTTP/2 on your server or CDNMDN

How should enterprises govern web performance?

For a large estate, the risk is regression: a campaign tag, a new font or an unreviewed library can undo months of work. Treat performance like any other service level. Set a budget per template, run Lighthouse in the build pipeline, review field data weekly, and make one team accountable for third-party scripts. Our guides to cloud native observability tools, full-stack observability and DevOps metrics show how to connect front-end signals to operational ones.

Where teams use AI agents to triage Lighthouse regressions, open tickets or draft fixes, keep humans in control of what ships. ElixirClaw is an agentic OS platform to build, orchestrate and govern AI agents and automation workflows while keeping humans in control, and AgentQA provides automated quality assurance for AI, which includes re-running test suites when prompts, tools or models change. See agentic workflows for patterns and governance.

DecisionWhen it fitsTrade-off
Set budgets per templateLarge sites with many teams shipping to shared templatesNeeds agreed owners and a failing build policy
Add real-user monitoringYou need field data beyond what CrUX covers for your pagesExtra script on the page and privacy review
Cut third-party tagsTags dominate main-thread timeMarketing and analytics teams must agree what to drop
Move to server-side rendering or prerenderingRender delay is the largest LCP sub-partHigher build and hosting complexity

What is a sensible adoption sequence?

  1. Baseline: record CrUX and PageSpeed Insights results for your ten highest-traffic templates.

  2. Diagnose: find the weakest metric and, for LCP, the largest sub-part.

  3. Fix the biggest item first: usually the LCP resource, main-thread JavaScript or unreserved space.

  4. Lock it in: add budgets and CI checks so regressions fail the build.

  5. Review monthly against field data and against conversion, not only scores.

When not to over-optimise: if field data already passes all three Core Web Vitals, the next hour is usually better spent on content or on the conversion path. For optimisation of the experience itself, see user experience testing tools and ethical UX design.

To map one performance or quality decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What are the Core Web Vitals thresholds?

According to web.dev, good means LCP of 2.5 seconds or less, INP of 200 milliseconds or less and CLS of 0.1 or less, measured at the 75th percentile of page loads. Confirm current values on web.dev.

What is a good Lighthouse performance score?

Chrome for Developers rates 90 to 100 as good, 50 to 89 as needing improvement and 0 to 49 as poor. It is a lab score and can differ from field data.

What is the difference between field and lab data?

Field data comes from real users, such as the Chrome UX Report. Lab data comes from a controlled test, such as Lighthouse. Use field data to judge the experience and lab data to diagnose causes.

Why should you not lazy-load the LCP image?

web.dev advises against it, because the LCP element should be discoverable and loaded early. Lazy loading is for content outside the first viewport.

Does INP replace FID?

web.dev describes INP as the successor metric to First Input Delay. INP considers interactions across the whole visit, not only the first one.

Next Steps in Web Performance Optimization 

Connect with our experts to explore implementing advanced Web Performance Optimization tools and techniques. Discover how industries and departments leverage intelligent workflows and data-driven decision-making to enhance website performance, optimize IT operations, and boost efficiency and responsiveness.

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 XenonStack Team
Get Started

Get Started with your requirements and primary focus, that will help us to make your solution

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

Proceed Next