Tuesday, October 15, 2019

Angular performance


Angular performance

  1. Production Builds (AOT Compilation)
  2.  Lazy Loading Modules
  3. Enable Production Mode
  4.  OnPush Change Detection
  5. Preserve Whitespaces
  6.  Avoid Function Calls in Views
  7. Check your ngDoCheck
  8.  Async Pipe
  9. Unsubscribe the obserable subscribe
  10. Track By Function (https://dotnettutorials.net/lesson/angular-ngfor-trackby/) 
  11. console.log(): Using console.log() statements in your production code could be a bad idea
  12. 33. Avoid complex computations in the template:

REF:

  • https://angular-guru.com/blog/angular-performance-tips
  • https://medium.com/@spp020/44-quick-tips-to-fine-tune-angular-performance-9f5768f5d945

No comments:

Post a Comment

Autoboxing and Unboxing

  Autoboxing  is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper cl...