YUNOVA · Angular

Module 11: Performance and rendering

Notes for offline study · 30 November 2026

OnPush change detection strategy

Key points

  • OnPush checks a component only when its inputs change by reference.
  • Events, async pipe and signals also mark an OnPush component for checking.
  • Use immutable updates so new references trigger detection.

Deferrable views with @defer

Key points

  • @defer loads a block and its dependencies lazily.
  • Triggers such as on viewport, on idle or on interaction decide when it loads.
  • @placeholder, @loading and @error blocks show content meanwhile.

Bundle size optimisation

Key points

  • Lazy-loaded routes split the app into smaller chunks.
  • Build budgets in angular.json warn when bundles grow too large.
  • Source map explorers show which libraries take up space.

Server-side rendering and hydration

Key points

  • SSR renders pages on the server so HTML arrives ready to show.
  • Hydration reuses the server DOM instead of rebuilding it in the browser.
  • Browser-only APIs must be guarded when code runs on the server.

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.