Core Web Vitals are Google's three measures of how a page feels to a real visitor: how fast the main content appears (Largest Contentful Paint, LCP), how much the layout jumps while loading (Cumulative Layout Shift, CLS), and how quickly the page responds to a tap or click (Interaction to Next Paint, INP). This article uses my own site, an Angular application rendered on the server, as a worked example of getting all three right.
In the November audit, PageSpeed Insights' mobile test on a throttled connection gave the home page 99 for performance and 100 for accessibility, best practices and SEO. A case-study page scored 100 in all four. LCP was about one second and CLS close to zero.
Start with a budget, not a fix list
Before the first component was built, the plan set a performance budget: LCP under 2.0 seconds, CLS under 0.05, INP under 200 milliseconds and less than 170 KB of initial JavaScript (gzipped). A budget turns "make it fast" into a check that can fail. Every later decision was measured against it. I explain why measuring comes first in measure web performance before you optimise.
Render on the server
A client-only Angular app sends an almost empty page and builds the content in the browser, so the visitor waits for the JavaScript before seeing anything. With server-side rendering, the HTML arrives with the headings, text and images already in place. That is the single biggest reason the LCP is around a second. It also means search engines read the full page without running any script.
Keep the JavaScript small and late
- Lazy-loaded routes. Each page loads its own code only when it is visited.
- Signals and OnPush change detection. Angular updates only the parts of the page whose data changed, which keeps interactions quick. I cover this in Angular signals and OnPush.
Fonts that don't block the page
The site uses two variable fonts: Plus Jakarta Sans for Latin text and Vazirmatn for Persian and Arabic. Both are bundled with the site instead of loaded from a font service, so there is no extra connection to another domain. They are WOFF2 files split by character range, which means the browser downloads only the ranges a page actually uses: an English page never downloads Persian letters. With font-display: swap, text appears immediately in a fallback font and switches when the font arrives.
Images with fixed sizes
Layout shift usually comes from images and embeds that arrive without a reserved space. The images here have their width and height set, so the browser reserves the space before they load, which is why CLS stays near zero. On the home page the largest element is the portrait, so it is marked as a priority image and fetched first; Angular's image directive lazy-loads the images that are not.
What the audit still found
Even a well-scored site has something to fix. The audit flagged two small items:
- The hero portrait was a 49 KB JPG. It is now a 480-pixel WebP of 32.6 KB, with the larger JPG kept only for social previews and structured data.
- Images were cached for one day. They are now cached for seven days with
stale-while-revalidate, so returning visitors get them instantly while a fresh copy is checked in the background. They are not marked immutable, because they are replaced in place.
Neither changed the score much, but both reduce bytes for every visitor, and they show the value of re-measuring a site that already looks fine.
Speed is half of being found
Fast pages help, but search engines rank pages that clearly answer a search. The same audit checked canonical tags, hreflang between the four languages, a single H1 per page, unique titles and descriptions, and structured data. Each page's title, description and focus keyphrase are now edited and graded in the site's own dashboard.
A checklist for your own site
- Set a budget for LCP, CLS, INP and JavaScript size before optimising.
- Render the main content on the server.
- Lazy-load routes and anything below the fold.
- Bundle your fonts as WOFF2 files split by character range, with
font-display: swap. - Mark the largest image on the page as a priority so it loads first.
- Give every image a size, serve WebP or AVIF, and cache images for days, not hours.
- Measure again after each change, on a phone-sized, throttled test.
Next step
If your site feels slow or is hard to find, see how I approach website speed optimisation, or send me the address and I will tell you what I would measure first.
Originally published on mkcodestudio.com.