0

I have developed an angular 6 application with --aot enabled and with lazy loading. This application on my local server is able to load in 2 sec. But when I load the same application on the AWS server, the loading time is more, and it is near to 40 sec.

Please let me know anyway is there to decrease the loading time of the application, while accessing it from the server?

Thanks to Akshay Rajut's answer, which helped me to increase the performance of my application.

Thanks in advance.

EDIT: I have taken build using the command: ng build --aot and using nginx for running the application.

3
  • What are you using to serve it? i think the problem is that your JS is not on CloudFront or and serve it via backend or something like that Commented Aug 26, 2019 at 7:02
  • there could be many things... adding a CDN would help, making it into a PWA would help too... your local load is probably fetching site assets from the local cache, which is why you get very fast response; you need to look at the network tab of the inspect elements Commented Aug 26, 2019 at 7:34
  • I am using nginx. Commented Aug 26, 2019 at 9:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.