This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with images

 
sreedhar Lackka
Ranch Hand
Posts: 154
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Thanks a lot in advance.
We are facing some problem with images.
Actually in our application we are using more number of images on each page.
Some of the images will load as part of my JSP and some images from CSS files.
The page is taking so much time to load images even from 2nd time also.
Is there any way to block entire page till the time all the images gets loaded. We tried with pre load images also but not seen that much difference.
Do we have any solutions for the above?
Is there any way to load Javascript/CSS in advance only?

Please help me.

Regards,
Sree
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your browser i limited to the number of http connections that it can make to one domain. IE6 can have only 2 connections open at a time.

If you really want to speed up the page load time:

1) Make sure you are not using spacer images [1x1 invisible images]
2) Make sure the images are sized correctly. [you do not have a photo that is 10X the size it needs to be]
3) Use CNames for your images. http://images1.example.com, http://images2.example.com, and so on. Studies have shown it seems that 5 CNames [sub-domains] is about the optimal number for performance on most machines.
4) Cache size on the user's computer also is important. If two small it will not cache! [You can not change that!]

Eric
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for reply.
Could you please elobarate on point 3.
Actually we need white image and we are using it but I dont know whether it has any solution/alternate.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric.
Could you please tell me any site which have some examples?
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Removed]
[ December 17, 2008: Message edited by: Bear Bibeault ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not going to answer a question on another forum.

Examples of sites: Google Maps

Look into: http://developer.yahoo.com/yslow/

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic