How to optimize the Angular app?
Mar 6, 2024
By implementing below points
- AOT
- Tree shaking
- Lazy loading
- Change Detection to onPush
- Pure pipes
- Immutable data
- Avoid expensive operation in html template
- wisely use NgZone
- Lesser no of request
- Reducing size if image and assests
- Use caching server , Server side, client side
- Minimize thirdparty lib
- DRY No duplicate code
- foor loop use trackby
- Signals
- Web workers
- Use CDN
- Unsubscribe