the number of simultaneous HTTP / 1 connections with the host is limited to about 6. Assuming a latency of 100 ms, about 60 images in the published sprite will take at least a second to load (possibly more, since HTTP requests and responses must be generated and analyzed).
Since the size of the sprite image is about the same as the individual sprites, and the image processing is incredibly fast (I would estimate well below 100 ms for all 60 images together), using sprites saves the Amazon about 900 ms load time, a noticeable effect - and this is theoretically , without taking into account the huge overhead associated with serving the 60 times the number of requests that they might otherwise have.
In conclusion, use sprites for logos and small images over HTTP / 1.
HTTP / 2 is designed so that workarounds are no longer needed. Most importantly, multiple requests can be simultaneously served over the same TCP connection. In addition, header compression is intended to compress redundant headers such as User-Agent or Accept .
source share