Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image Download Time

 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My application homepage is taking around 12-15 seconds to show up on IE.

I used HTTPWatch for analysing the download time taken by jsp, images,css etc..

I noticed my jsp gets downloaded in 4-7 seconds, but rest of the time is consumed for images and css files.

I gave System.currentTimeMillis() at the start of the homepage jsp and also at the end of the jsp. The result was between 3-5 seconds.{httpwatch was showing 4-7)

My directory structure is

/pages/user/*jsp
/pages/common/*.jsp
/pages/images/*.js,*.gif,*.jpeg.


Please suggest How Can I reduce the time taken for image downloads.

Thanks,
Neeraj
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simplify your home page to use fewer resources.

Consider loading some elements by JavaScript after the main page has been displayed.

Its a design problem with no direct java solution.

Bill
 
Greg Bugaj
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, you could try to use http://developer.yahoo.com/yui/ ImageLoader personaly I never used it but it looks promising, also you can load the css after the main content have been displayed something similar to what google.com/analytics does.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic