开发者

Whats the purpose of using one image sprite in Google music website images

开发者 https://www.devze.com 2023-03-17 10:00 出处:网络
I have seen that google music is using one image for all the small images used in google Music website

I have seen that google music is using one image for all the small images used in google Music website

http://music.google.com/music/sprites.png开发者_如何学编程

Whats the purpose of using one image sprite in Google music website images

i want to know whats the advantage of it. It would be very difficult to mark the position coordinates of small images


It reduces the number of HTTP requests that the client has to make to the server. Generally this speeds load time.

Yahoo provides a good set of guidelines for decreasing the load time of your web page. This is part of their first rule.

Setting up all of the indexes for the locations is time consuming, but it only has to be done once by the developer and then every single page load requires less HTTP requests. Specifically, in this case, 1 request rather than several dozen for all of the little images.

0

精彩评论

暂无评论...
验证码 换一张
取 消