Do stylesheet elements get loaded even if they are not used

Discussion in 'CSS' started by fadetoblack22, Nov 17, 2008.

  1. #1
    I am using a stylesheet with a background image for a certain part of my page. On other pages a different image will be used.

    Do all the images get loaded even if the pages that have certain background images don't get viewed?

    I want to know if I am wasting a lot of bandwidth using this method.
     
    fadetoblack22, Nov 17, 2008 IP
  2. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #2
    load up the web page in your browser... then view the source (this should be a standard feature in most browsers)... check the source if the elements are in there... ;)
     
    daboss, Nov 17, 2008 IP
  3. fadetoblack22

    fadetoblack22 Well-Known Member

    Messages:
    2,399
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Well not all of them are going to be in the html because as I said some are used on specific pages and of course, they will all be in the css source because that is where I put them.

    What I wanted to know is, can it be considered a bad thing to have images in the css that might not be used? Will it affect performance of the site loading etc...
     
    fadetoblack22, Nov 17, 2008 IP