This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt 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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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: 13018
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.
I agree. Here's the link:
subject: Image Download Time
It's not a secret anymore!