Under what circumstances would loading images individually with HTTP/2 be slower than loading all images at once with a sprite a la HTTP/1.1?
问题 HTTP/2 makes it possible to multiplex connections, eliminating the need for more than one connection to a server. Over a single connection, many individual images can be sent down to the client. This obviates the old image sprite pattern of combining many images into one and using CSS to cut it apart. I'm curious if sprites would still actually be faster in an HTTP/2 world. If so, under what circumstances? 回答1: Sprites, as you will know, are used to prevent multiple requests being queued, so