Angular performance
- Production Builds (AOT Compilation)
- Lazy Loading Modules
- Enable Production Mode
- OnPush Change Detection
- Preserve Whitespaces
- Avoid Function Calls in Views
- Check your ngDoCheck
- Async Pipe
- Unsubscribe the obserable subscribe
- Track By Function (https://dotnettutorials.net/lesson/angular-ngfor-trackby/)
- console.log(): Using console.log() statements in your production code could be a bad idea
- 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