I cannot provide any proof of this.
but I believe it would only load it when its displayed.
the CSS wont parse and execture BANNERPAGE2, unless its caled from Page2.HTML


I always thought of CSS as a list of SUBROUTINES, and the HTML is the Class calling the subroutines...
if there is no need to call it.
it wont be run...
therefore images wont be loaded unless needed....



although i could be totally wrong!

:)

Mike Foskett wrote:

Hi all,

Does anyone happen to know exactly when a graphic is loaded from a CSS description?

E.G. Assuming different files for: XHTML and CSS.

XHTML:
   Page1.html only uses #bannerpage1
   Page2.html only uses #bannerpage2

When Page1 is first loaded it loads the global CSS which contains:

   #bannerpage1 {background:url(images/banner.gif) #fff top center}
   #bannerpage2 {background:url(images/banner2.gif) #fff top center}

Does the browser (showing Page1.html) load both banners but only displays #bannerpage1?
Or
Does the browser only load the images required to style the current page?



Any help would be appreciated.


mike 2k:)2




********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************


*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************








*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************




Reply via email to