Css optimization

I noticed that digg.com and google.com use some css optimization in their gif header image. for example, digg uses this image http://digg.com/img/menu-current.gif .

Can someone let me know why they use this method and how to do it on my own site?

+3
source share
5 answers

CSS Sprites: Gluing Images Kiss of Death:
A List Apart

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

+3
+1

, ( ); , CSS , () .

, .

, @A List Apart.

+1

They use this technique, so a single image is loaded, not a browser, which makes many different connections for downloading multiple images.

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

The links that others post while I write probably have good methods for cropping images.

+1
source

Source: https://habr.com/ru/post/1725546/


All Articles