They are still useful. HTTP / 2 reduces the impact of some of these methods, but does not eliminate their effects .
Minimization remains as useful as ever . Although HTTP / 2 introduces a new compression for message headers, it has nothing to do with minimization (as for message bodies). The compression algorithms for message bodies are the same, so minimization saves as much as before.
Concatenation and sprites will have less impact than before, but they will still have some effect . The biggest problem with uploading multiple files instead of a single file with HTTP / 1 is not really a problem on the HTTP side, in and of itself: bandwidth-based overheads require a separate request for each file, but this is overshadowed by the overhead of session termination TCP / IP, when you are done with one file, then run a new one for the next and repeat this for each file you want to download.
The biggest emphasis in HTTP / 2 is the elimination of time overhead: HTTP / 1.1 tried to do this using pipelining, but it didn’t catch it in the browser (Presto is the only engine that got it completely right, and Presto is dead). HTTP / 2 is another attempt that improves HTTP / 1.1 methods, and also makes this thing non-optional, and it will be more successful. It also eliminates some of the bandwidth-based overhead when creating multiple requests by compressing headers, but it cannot completely eliminate this overhead, and when loading multiple files, these requests still need to be done (as part of a single TCP / IP session, so the overhead costs less, but not zero). Thus, although the impact of concatenation and writing is proportionally less, there is still some influence, especially if you use a lot of files.
Another thing to consider when it comes to concatenation and writing is compression. Concatenated files of similar types tend to compress better than single files , because the compression algorithm can use the similarity between concatenated pieces of data. A similar principle applies to sprites : placing similar images in different areas of the same file usually leads to a reduction in the file, since image compression can use similarities in different regions.
The Spooniest Feb 20 '15 at 2:36 2015-02-20 14:36
source share