Does minifying and concatenating JS/CSS files, and using sprites for images still provide performance benefits when using HTTP/2?

后端 未结 5 922
Happy的楠姐
Happy的楠姐 2021-01-31 14:33

With the new HTTP/2 protocol the overhead created by repeated HTTP requests to the same server has been greatly reduced.

With this in mind, are there still any significa

5条回答
  •  Happy的楠姐
    2021-01-31 15:18

    So far, all the answers tacitly assume that you'll want to download ALL the .CSS and .JS files for every page. A benefit from using http/2 and keeping .CSS and .JS files separate is that you can only bring down the ones you need, and not downloading something is always faster than efficiently downloading it.

提交回复
热议问题