Menu

#958 use of CSS Sprites to reduce http requests for images

open
nobody
None
5
2008-03-30
2008-03-30
Mark Hattam
No

Several web articles deal with using CSS Sprites.

This technique reduces the number of separate image fetches, each using an http request to the server, by combining (say) the icons, the small icons and navigation images into a single image file then using CSS positioning.

http://website-performance.org/

http://spritegen.website-performance.org/section/what-are-css-sprites/

http://www.alistapart.com/articles/sprites

Benefits are

less http connections ... therefore more connections available for simulataneously downloading something else, eg page specific media items.

faster download ... reduced wastage of space in network packets

better user experience ... no images popping up one at a time in the icon bar. They all get displayed in one hit.

Mark

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.