angular2app性能调优的4个阶段

Angular2最初主要目标是快速和高效.While being fast right out of the box, the performance of Angular apps can be further enhanced really supercharge your app.这些性能增强可以看到作为一个金字塔,每个级别提高一定的性能指标。

让我们来看看这些和他们如何去改善应用程序的性能。

1. Ahead of Time (AoT) compilation and Tree Shake

AoT是Angular2是区别于其他框架的最酷的功能之一,也给了你最大的性能提升。

2. Angular Universal

3. Web Workers

4. Service Workers & PWA

Summarizing