mafitzpatrick

msg:569693 | 7:21 pm on Apr 5, 2004 (gmt 0) |
Complete guess, but perhaps stick the image somewhere near the top of the page, resized to 1x1 above all the other images. That should ensure it will load first, and then perhaps pop into place as soon as the stylesheet loads - rather than the two-step: stylesheet->image thats holding it up at the moment. If display:none doesn't affect loading time, you can add that direct <img src="/file.gif" style="display:none" width=1 height=1> Sorted?
|
zollerwagner

msg:569694 | 9:23 pm on Apr 5, 2004 (gmt 0) |
External style sheets do seem to get loaded late in the process. What if your style data that involved images was included in an SSI for the head of each page, in a style element? (<style type="text/css" media="....)
|
pageoneresults

msg:569695 | 10:09 pm on Apr 5, 2004 (gmt 0) |
Hmmm, I've never experienced any problems with background images loading prior to the rest of the page. You would think that since the CSS is loaded before the <body> that all those images referenced in the CSS file would also load before any content after the <body>. | Does anybody know of a way to force those images to download sooner. |
| Maybe try using a javascript preload? | Complete guess, but perhaps stick the image somewhere near the top of the page, resized to 1x1 above all the other images. |
| Be careful with 1x1 images as a background. They cause some rendering issues, especially when working on those pages in a WYSIWYG interface. The pages scroll vertically very slowly due to the 1x1 gif being rendered. I usually recommend no smaller than 36x36 or 72x72.
|
stavs

msg:569696 | 11:19 pm on Apr 5, 2004 (gmt 0) |
thanks fellas. mafitzpatrick - i like your thinking - I'm going to try that as soon as I get into the office tomorrow ;-)
|
|