This series of articles will discuss Angular Performance issues.
- Angular Performance (1), Tuning --- this article
- Angular Performance (2), Caching --- Service Worker
- Angular Performance (3), Change Detection
This article will demonstrate Performance Tuning in general.
A - Introduction
We have an app with Angular as front end, Web API as the middle tier to link to Database and Azure environment/virtual machines. The initial load of the app is quite slow, it is about 30~40 seconds to load the GUI in Angular. We will discuss this issue from the following aspects:
- A - Introduction
- B - Overview of Angular Performance Tuning
- C - AOT compilation
- D - Minification
- E - Lazy Loading
- F - Caching --- Service Worker: see Angular Performance (2), Caching --- Service Worker
- G - Change Detection
- H - Summary
B - Overview of Angular Performance Tuning
A starting point to consider the Angular Performance issue could be like this


from Angular Performance Tuning: 15 Ways to Build Sophisticated Web Apps
In general, Angular Performance Tuning could include these steps:

from The angular performance tuning steps - Google Search

from Speed Up Your Angular App - 14 Angular Optimization Tips

from 7 Tips to Optimize Your Angular App/Application
We will check and discuss the following points:
- C - AOT compilation
- D - Minification
- E - Lazy Loading
- F - Caching --- Service Worker: see Angular Performance (2), Caching --- Service Worker
Without
- G - Change Detection
Because this might not be the reason to slow down our page loading.
C - AOT compilation

AOT's Advantage:
- AOT compilation mode + compression
- To give you a fair idea of the comparison between the bootstrap time for AoT and JIT compilation, let’s take a look at this graph:

- It demonstrates the difference in time-to-interactive between two Angular applications: One built with AoT and the other without it.
- To give you a fair idea of the comparison between the bootstrap time for AoT and JIT compilation, let’s take a look at this graph:








Join the conversation! Your thoughts help the community grow.