Действительно ли спрайты изображений более эффективны, чем отдельные изображения?

Я начал использовать спрайты изображений около 2 лет назад, потому что видел сайты, такие как Apple и Facebook, использующие их на своих сайтах.

Само собой разумеется, чтоloading a page is faster if you download one 60kb image, instead of three 20kb imagesОднако недавно мне сообщили, что спрайты, хотя и быстрее при загрузке, на самом деле занимают намного больше памяти на стороне клиента.

В моих глазах:

Sprites are faster at loading and use less bandwidth From a developers point of view, they are easier to maintain because all of your graphics are in one place

Однако в глазах моих коллег:

Each time the sprite is referenced on the page, the image is created in memory, which in turn slows down the clients browser The difference in speed of loading is not sufficient enough to justify the increased memory usage of the browser The internet is designed to transmit in small packets, therefore loading smaller images is better then loading larger ones

This leads me to ask the question, are sprites are actually worth using or is my colleague barking up the wrong tree?

Ответы на вопрос(3)

Ваш ответ на вопрос