What are the advantages of using CSS Sprites in web applications?

前端 未结 6 787
余生分开走
余生分开走 2020-12-10 03:26

I\'m working on a website with reasonably heavy traffic and I\'m looking into using a CSS sprite to reduce the number of image loads in its design.

Are there any adv

6条回答
  •  时光取名叫无心
    2020-12-10 04:01

    Less http requests = faster loading overall. Yahoo and co. use this technique, if you can imagine the amount of users they have it saves a lot of bandwidth. Imagine 50 seperate images for icons, that's 50 seperate http requests as opposed to having just one css sprite containing all the images, that would save 49 http requests and multiply that per all the users of the site.

提交回复
热议问题