1.

How Would You Optimize The Angular 2 Application For Better Performance?

Answer»

ell, OPTIMIZATION depends on the type and SIZE of APPLICATION and many other factors. But in general, I would CONSIDER the following points while optimizing the angular 2 app:

  • Consider AOT compilation.
  • Make sure the application is bundled, uglified, and tree shaking is done.
  • Make sure the application doesn’t have un-necessary import statements.
  • Make sure that any 3rd party library, which is not used, is removed from the application.
  • Have all dependencies and dev-dependencies are clearly separated.
  • I would consider LAZY loading instead of fully bundled app if the app size is more.

ell, optimization depends on the type and size of application and many other factors. But in general, I would consider the following points while optimizing the angular 2 app:



Discussion

No Comment Found