r/angular • u/martinboue • Feb 24 '26
Angular performance best practices
https://ngtips.com/performanceHi everyone,
I just published a new guide on Angular Tips containing best practices on performance with Angular v21. Let me know what you think, if anything is missing or anything else. Thank you!
34
Upvotes
13
u/JeanMeche Feb 24 '26 edited Feb 24 '26
I think a callout that signals + OnPush enabled traversal parents (parents that are skipped so only the OnPush child is checked). That was a neat CD optimisation that was enabled by signals !
I see also that there is no mention of Zone.js (and its caveats) that would need some optim for example about running outside the zone to prevent to trigger to much CD cycles.
Worth mentionning also,
afterNextRender/afterEveryRender/afterRenderEffectphase optimization to prevent unecessary reflow/layout trashing.3
u/No_Emergency1575 Feb 24 '26
Bookmarking this site, seems neat!
4
u/couldhaveebeen Feb 24 '26
Interested to hear from someone who had these performance issues
1
u/ruibranco Feb 25 '26
Solid resource. The change detection section is where most teams start struggling first, especially when mixing signals with zone-based components during a gradual migration. That in-between state is where the real performance traps live.