Skip to main content

Rendering and change detection performance

Learn Rendering and change detection performance (Module 18 · Angular Performance Optimization, Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Where does the time go? Understanding rendering performance : a page update is a pipeline: JavaScript runs, the browser recalculates styles, computes layout, paints and composites. Angular adds its own work, change detection . A slow app is usually doing too much of one of these: too many DOM nodes, too many checks, or heavy JavaScript. Think of a restaurant kitchen: the fix is not a faster waiter but cooking less unnecessary food. Quick wins: OnPush on components, track in lists, keep template expressions cheap, and let the AsyncPipe handle subscriptions.

More lessons in Module 18 · Angular Performance Optimization