Promar Promar - 23 days ago 9
AngularJS Question

AngularJS page takes long to load

I'm creating a page using AngularJS as front-end and SpringBoot as back-end. I'm completely new to AngularJS and I can't figure out why it takes so long for my page to load.

Thank's for any help in advance.

This is the link to my page: http://52.39.52.69:8080/#/

Answer

All the modern JavaScript frameworks come with a learning curve you have to get over. For AngularJS, since you are new to it, I would strongly suggest you use AngularJS2. It's faster than 1.x. Familiarise yourself with the build process - in production environment you want all your files packed and minified. For a general approach have a look at this blog article (a little older, but you get the gist).

For Angular2 check out the Angular Seed project

Watching some tutorials on YouTube about the build process will help too