October 2017
Intermediate to advanced
280 pages
6h 50m
English
From AOT, we get a couple of improvements. First, if we compile our Angular application as part of the build process, we don't need to compile it at runtime. This means that we don't get the runtime performance hit that we get when using JIT. This way, AOT offers faster initial rendering of the application because Angular has to do less work during initialization.
On top of this, since we don't have to perform compilation at runtime anymore, we can drop the entire @angular/compiler module out of the final application bundle and decrease the bundle size.
Finally, we can perform much more efficient dead code elimination in terms of tree-shaking. Tree-shaking means dropping unused exports, ...
Read now
Unlock full access