Performance monitoring
Angular performance monitoring
Angular apps slow down from change detection running too often, large initial bundles and chatty APIs. Measure real users, then profile change detection.
3 min read8 sectionsUpdated
On this page
| Metric | Good | Typical Angular cause when poor |
|---|---|---|
| LCP | ≤ 2.5 s | Client-side rendering of the first screen, large bundles, late hero images |
| INP | ≤ 200 ms | Expensive re-renders, heavy event handlers, long tasks during hydration |
| CLS | ≤ 0.1 | Content inserted after data loads, images without dimensions |
| JS error rate | Low and stable | Unhandled errors in components and async code |
Common Angular performance problems
- Default change detection checking the whole tree on every event; use
ChangeDetectionStrategy.OnPushand signals so only affected components update. - Functions called in templates running on every check; use pure pipes or computed signals.
*ngForwithout trackBy (or@forwithouttrack), re-creating DOM for every list change.- Large initial bundles; lazy-load feature routes and defer heavy components with
@defer. - Zone.js patching third-party callbacks, triggering detection for unrelated events; run them outside Angular's zone or move to zoneless change detection where possible.
Measuring
Angular DevTools has a profiler that shows change detection cycles and how long each component took. Use ng build --stats-json with a bundle analyzer to find large dependencies. In production, report Web Vitals and errors from real users; implement a custom ErrorHandler that forwards errors to your monitoring.
Angular monitoring in VitalRix
Add the real user monitoring script to your app shell to record Core Web Vitals per page from real visitors, JavaScript errors with source-mapped stacks (upload source maps per release), and masked session replays. Pair it with APM for the API calls your Angular app makes, and try the free LCP and INP checks on any page.
Does real user monitoring work with Angular client-side routing?
Yes. Page views are recorded on navigation, and Web Vitals such as INP and CLS are measured across the visit.
Does server-side rendering help Angular performance?
Angular SSR with hydration puts content in the first HTML, which usually improves LCP. Check INP too, since hydration adds main-thread work.
Check it now, free
- Response time checker: Measure TTFB with DNS, connect, TLS and server time.
Related reading
- React performance monitoring: Monitor React apps in production: Core Web Vitals from real users, slow renders and INP, bundle size, errors with source maps.
- Vue performance monitoring: Monitor Vue and Nuxt apps in production: Core Web Vitals from real users, reactivity and render cost, bundle size.
- Next.js performance monitoring: Monitor Next.js apps end to end: Core Web Vitals from real users, server rendering and route handler latency with OpenTelemetry, caching behaviour and errors.
- Monitoring for publishers and media sites: Monitoring for news and content sites: Core Web Vitals per template, layout shift from ads, breaking-news traffic spikes and crawlability checks.
- Cloudflare error 521: web server is down: Fix Cloudflare error 521 "Web server is down": the origin refused the connection. Check the web server, firewall rules for Cloudflare IPs and DNS.
- Cloudflare error 520: web server returns an unknown error: Fix Cloudflare error 520 "Web server returns an unknown error": empty or reset origin responses, crashes, oversized headers and keep-alive mismatches.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.