Menu

Core Web Vitals on an Angular SSR site: a worked example
📰

Core Web Vitals on an Angular SSR site: a worked example

DEV Community: angular·Mohammad Khalifeh·13 days ago
#evZwuCYb
#devtoangular#devto#dev#angular#first
Long article (774 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.