This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Image Download Time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Image Download Time" Watch "Image Download Time" New topic

Image Download Time

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315

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


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

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13001
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.

Greg Bugaj

Joined: May 19, 2008
Posts: 3
Hi, you could try to use 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 does.
Consider Paul's rocket mass heater.
subject: Image Download Time
It's not a secret anymore!