W3C home > Mailing lists > Public > www-style@w3.org > November 2001

How to preload background image

From: Cristiano Guglielmetti <guglielmetti@tin.it>
Date: Sat, 17 Nov 2001 14:39:16 -0500 (EST)
Message-ID: <00d601c16f9f$8c0510f0$0201a8c0@ghost1>
To: <www-style@w3.org>
Using:

body
{
 margin: 0;
 background-image: url('../images/bkgdbase.gif');
 background-color: #ffffff;
 font-family: Verdana, Arial;
 font-size: 8pt;
 color: #336699
}

the background image is loaded by the client at the same time of the text
and others images.

Is there a method to pre-load background image as first and then other
objects?
I found some improvements removing "background-image" from CSS and putting
<body background="image"> in the html.

Using ASP you could add "<% Response.Buffer= true %>" before <html> tag,
but, how can do the same when there is non-ASP capability server?

Thanks in advance,

Cristiano Guglielmetti, MCP
http://space.tin.it/computer/crguglie/
Received on Sunday, 18 November 2001 13:01:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:11 GMT