Posted by Kromey at 9:26pm Nov 23 '09
You must sign in to send Kromey a message
You must sign in to send Kromey a message
you could use CSS sprites. That way you only download a single image (actually, for the volume on 4K, you'd probably want a few images, breaking down the icons e.g. by sets), and then use some fancy CSS stylings to get only the slice of the image (the individual icon) you want to show up.
In other words, you have one image file that includes several (let's say 5 to keep things simple) icons; you choose which icon you actually want to be displayed and produce the appropriate CSS rules.
Definitely advanced-level stuff, and I've only very briefly touched on the highest-level principles of it, but when done right it again is great at reducing page loading times.
In other words, you have one image file that includes several (let's say 5 to keep things simple) icons; you choose which icon you actually want to be displayed and produce the appropriate CSS rules.
Definitely advanced-level stuff, and I've only very briefly touched on the highest-level principles of it, but when done right it again is great at reducing page loading times.