Question

I noticed that Digg and Google are using a kind of CSS optimization in their GIF header image. For example digg uses this image:

image was taken by the link which was removed, see the revision history for more

Why are they using this technique and how to do it in my own site?

Was it helpful?

Solution

CSS Sprites: Image Slicing’s Kiss of Death:
A List Apart

The purpose of this technique is to reduce HTTP-requests by combining all images.

OTHER TIPS

These are called CSS sprites. They are used to reduce the number of server requests.

Check out this nice article about them: http://www.alistapart.com/articles/sprites/

It's called a css sprite

I believe these are called splices (or is it sprites); basically they load up the whole image one time and tell CSS to display only part of it, that way they avoid having to (pre)load lots and lots of images.

They add more responsiveness to the page, since consecutive images are loaded immediately.

As weichsel mentioned, check the article @ A List Apart.

They use that technique so one image is downloaded rather than the browser potentially making many different connections to download multiple images.

You can then "crop" the image as a CSS background-image using a combination of CSS properties like "background-position" and "width".

The the links the others are posting while I write this probably have good techniques to crop the images.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top