Multiple requests to same image sprite

Discussion in 'CSS' started by ntomsheck, May 20, 2011.

  1. #1
    Hey guys, this one is a stumper. So I have an image sprite for my star rating, which has the three different stars in it. Since it uses a different star for different actions, it uses a different CSS selector (three different CSS selectors) to grab the correct star. Well, this turns a ~4K image into a 13K request, which blew my site above the 2 second load times. Is there any way css can load the image just once, then just use the same image (already loaded into the users browser) to select the specific star?
     
    ntomsheck, May 20, 2011 IP