File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Image Download Time

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
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

Joined: Mar 22, 2000
Posts: 12681
    
    5
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


Java Resources at www.wbrogden.com
Greg Bugaj
Greenhorn

Joined: May 19, 2008
Posts: 3
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Image Download Time
 
Similar Threads
Servlet Taking 45 seconds to respond.
CSS Sprite
Alert timeout
24HourTime into 12Hour time
Resource Restriction using web.xml