Perfomance optimization

Performance improvement checklist

Fixing and detecting memory leaks

Enable Prod mode

What does it do :

  • Reduce to a single check the change detection

  • do not use deep comparison of object for change detection

http://stackoverflow.com/questions/34868810/what-is-difference-between-production-and-development-mode-in-angular2

How to

import { enableProdMode } from '@angular/core';

// enable prod for faster renders
enableProdMode();

AOT / Ahead of time compilation

Precompilation of the code > Link to article

Universal angular

Prerendering on the server side.

Look at our introduction and step by step starter

Last updated