| Author |
Problem with images
|
sreedhar Lackka
Ranch Hand
Joined: Jul 05, 2008
Posts: 154
|
|
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
Joined: Nov 08, 2001
Posts: 15357
|
|
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
Joined: Jul 05, 2008
Posts: 154
|
|
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
Joined: Nov 08, 2001
Posts: 15357
|
|
|
http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits
|
 |
sreedhar Lackka
Ranch Hand
Joined: Jul 05, 2008
Posts: 154
|
|
Thanks Eric. Could you please tell me any site which have some examples?
|
 |
sreedhar Lackka
Ranch Hand
Joined: Jul 05, 2008
Posts: 154
|
|
[Removed] [ December 17, 2008: Message edited by: Bear Bibeault ]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
I am not going to answer a question on another forum. Examples of sites: Google Maps Look into: http://developer.yahoo.com/yslow/ Eric
|
 |
 |
|
|
subject: Problem with images
|
|
|