Why do some websites have an image combined with multiple images?

Discussion in 'HTML & Website Design' started by testimonial, Oct 9, 2010.

  1. #1
    Google has this image uploaded to their "images" folder:
    http://www.google.com/images/srpr/nav_logo14.png

    What is the purpose of having an image containing multiple different images? Can someone please explain the purpose and concept of this to me? Thanks in advance.
     
    Last edited: Oct 9, 2010
    testimonial, Oct 9, 2010 IP
  2. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #2
    Read some stuff about CSS sprites.

    Instead of loading several images you only load one image that is containing every image the site is using.
    It increases loading speed a lot.
     
    CSM, Oct 9, 2010 IP
  3. testimonial

    testimonial Greenhorn

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Thank you! I gave you reputation.

    I'll go do some research now.
     
    testimonial, Oct 9, 2010 IP
  4. kofadije

    kofadije Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    basically put, it is soemthing that is referred to as css sprites. in simple words, consider you having 10 separate images all located in your images folder. now when these images are ebign doewnloaded, they would have to be downloaded separtely and you would be making 10 different http requests. but with the use of such css sprites, what you will have is just one single image, so there is only 1 http request so teh page can now load much faster
     
    kofadije, Oct 9, 2010 IP
  5. testimonial

    testimonial Greenhorn

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    Ah, thank you. I can thoroughly see now why using a CSS sprite would increase the speed of loading a page.

    +Rep for you.
     
    testimonial, Oct 9, 2010 IP
  6. kofadije

    kofadije Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    no prolemo!
     
    kofadije, Jul 1, 2011 IP