Forum Moderators: not2easy

Message Too Old, No Replies

When do browsers load CSS background images?

Are all background images loaded when an external style sheet is called?

         

sweatynevets

9:27 am on Jul 6, 2005 (gmt 0)

10+ Year Member



Hi,

I'm using a single CSS file to style all the various sections of my site, and it defines a different background image for each of the sites sections.

I'm concerned that this may cause load speed problems. Does anybody know if all CSS background images are loaded when an external CSS is called, or if the background images are only called when the CSS rule is used?

Thanks
Steve

Sathallrin

5:24 pm on Jul 6, 2005 (gmt 0)

10+ Year Member



The background images specified in the CSS only load when an element uses that Class or ID. If no elements use the Class or ID, the image will not be loaded.

sweatynevets

9:01 am on Jul 7, 2005 (gmt 0)

10+ Year Member



Thanks

That's good news :)