Web application performance optimization has one honest measure: what a real user waits for. Google measures three things on every page, and the targets are public. This note gives you the targets, then the fixes in order of how much they move the score, so you spend the first day on the things that matter.
We measure every site and app we build against this list, including this one.
The three numbers that count
Google calls them Core Web Vitals. A page passes when it meets all three for 75% of real visits:
- Largest Contentful Paint (LCP): the time until the biggest thing on the screen is visible. Target: 2.5 seconds or less.
- Interaction to Next Paint (INP): the delay between a click or a tap and the screen responding. Aim for 200 milliseconds or less.
- Cumulative Layout Shift (CLS): how much the page jumps around while loading. Keep it at 0.1 or less.
Measure first. Lighthouse in Chrome gives you a lab score in a minute. Search Console shows what real visitors see. The real numbers are the ones that count, and they are usually worse than the lab, because real phones are slower than your laptop.
Ten fixes, in order of impact
1. Make the biggest image small
The LCP element is almost always an image or a hero block. Serve it at the size it is shown, in a modern format (AVIF or WebP), and load it first. One oversized hero image can be the whole difference between a failing page and a passing one.
2. Cut the JavaScript
Every kilobyte of script has to be downloaded, parsed and run before the page can respond. Delete libraries you use once. Load the rest only on the pages that need them. A site that ships a megabyte of script to show a form is paying for the megabyte on every visit.
3. Load scripts after the content
Third-party tags (analytics, chat widgets, consent tools) block the page if they load first. Defer them, or load them after the first interaction. A chat widget that loads before the headline is a chat widget nobody has asked for yet.
4. Reserve space for everything that loads late
Layout shift comes from images without dimensions, ads, embeds and fonts that swap. Give every image a width and height. Give late content a fixed box. Preload the fonts and use a fallback that takes the same space.
5. Cache what does not change
Set long cache headers on images, scripts and styles, and put a content hash in the file name so a change still reaches the browser. A returning visitor should download almost nothing.
6. Put the page close to the visitor
A content delivery network serves the static parts of the app from a server near the user. For a static site that is the whole site. For an app it is still the images, scripts and styles, which is most of the bytes.
7. Fix the slow queries
In a web application the server is often the problem, not the browser. Find the five slowest database queries and add the missing index, or stop the page from running the same query fifty times. A page that waits two seconds for the server fails LCP before the browser has done anything.
8. Render the first screen on the server
A page that arrives empty and fills itself in with script makes the user wait twice: once for the HTML, once for the data. Render the first screen on the server, then let the script take over. Static pages, where the content allows it, are faster still.
9. Keep long tasks short
INP fails when a click starts a piece of work that takes half a second. Split long tasks, move heavy work off the main thread, and show the response to the click before the work is done.
10. Measure again, on a phone
Run the test on a mid-range phone on a slow connection, not on a desktop on office Wi-Fi. If it passes there, it passes everywhere. Then watch the real numbers in Search Console every month, because the next feature will slow it down again.
What a typical pass looks like
On the sites we fix, the first three items alone usually take a failing mobile score into the passing range. Items four to six make it stay there. Seven to nine are where web applications, as opposed to websites, lose most of their time.
The order matters more than the completeness. A team that does the first three fixes this week beats a team that plans all ten for next quarter.
When to call someone
If the score is failing and the team has already done the image and script work, the problem is usually in the server or the data layer. That is a few days of work for someone who has done it before, and it is a bounded project with a measurable result.
We take these on as part of our web application development work, after a short look at the site. Tell us the address and we will say what is slow and what it would take.