JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!



Multiple requests to same image sprite


M

keyboard_arrow_up
0
keyboard_arrow_down


First Post Mark as Spam Mvbshfala
Posts: 33 - Registered: 2011-07-01 20:05:01

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?




R

keyboard_arrow_up
0
keyboard_arrow_down


Reply #1 Mark as Spam rajmv
Posts: 103 - Registered: 2011-07-14 02:22:09

You must be doing something very strange..

I use sprites all the time, and i get only 1 request for an image that is smaller than the individual images combined.

Post your code to let us help you.






JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!




MENU
Advertising