istiti
istiti

Reputation: 139

Start app with angular-cli is too slow

I come from angular 1 and my app used to load very fast. Now the start time is much longer. On phone, it's 5 - 10 seconds. The app is generated from angular-cli. Ng launch after ng build. Is this normal? How can I built my app using AoT even if ng-cli does support it. Will it accelerate in AoT or not?

Upvotes: 2

Views: 2092

Answers (1)

Andrei Zhytkevich
Andrei Zhytkevich

Reputation: 8099

Try ng build --prod. It concatenates angular files.

In dev each single file is received through a single request, which take enormous amount of time.

Upvotes: 1

Related Questions