Reputation: 11
i am trying to improve the performance of my web application. It is a java based web application & deployed on an amazon cloud server with Jboss & apache.
There is one page in the application that is taking 13-14 seconds to open. The functionality is so much that there are about 100+ http requests that get executed on page loading time. The Js & css files are taking too much time to load.
So i moved all of the Javascript code from my JSP page to new JS files. Minified the JS & css files. Still there is not much difference in the page load time.
There is dojo data on this page as well which takes time to load.
Is there any other appproach i should try to tune this page?
Can something be done at the Jboss or Apache level?
Upvotes: 1
Views: 209
Reputation: 17745
RequireJS
to optimize your css and js files. You can concatenate (merge multiple js files to one) your code. This will reduce the number of ajax calls (that's what the browser does when it sees a js or css dependency) (As @Ken Franqueiro mentions in the comment section, Dojo already has a mechanism for this). More hereUse some profiling tools like Chrome Development Tools
or FireBug for Mozilla
.
Take a snapshot of your network traffic and check where the bottleneck is.
In Chrome you press F12 and then select the Network
tab.
Upvotes: 1