Tips of how to optimise Tomcat, Spring and Angularjs

Recently I’m working on a project which is developed with Spring and Angularjs.

However, when launching the app to the aws server, I figured out that the first-time loading of angularjs took quite a long time.

So Here are some tips about how to optimise the performance of angularjs with tomcat.

  1. compress the angularjs files.

Since the strategy of angularjs is loading all files at the very beginning, the size of all js and css files is an essential element which will affect the performance significantly.

There are a lot of tools which you can find online to compress js and css file. Usually all space will be remove to reduce the size of files. BTW, it’s also a good way to improve the security level of your js files.

2. Tomcat server configuration


to be continue…..