-2

Is it better to use image sprites for CSS or use a lot of different image files? Maybe it is better to use a lot of different images rather than one sprite or vice versa?

Sergejs Visockis
  • 123
  • 1
  • 4
  • 8

2 Answers2

1

As typical website contains multiple css, java script and image files,causing browser to request multiple http requests. By using sprite it causes less http requests (good for webserver and client/user), and so page will be load fast (good for client/user)

Adeel
  • 19,075
  • 4
  • 46
  • 60
0

Put everything in 1 sprite, so only 1 request is needed.

EDIT

Actually it's best to put everything that's related on the same sprite, for example a sprite with forum images, a sprite with homepage images, ... Since you don't need the forum images on the homepage. (-> reduce size of request)

Pieter De Clercq
  • 1,951
  • 1
  • 17
  • 29