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

后端 未结 5 977
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条回答
  •  情书的邮戳
    2021-01-31 15:04

    Minifying JS can still reduce the size of many symbols; inflatedJargonSymbolizerTokenManager will become _a. One example I found showed that JQuery GZipped was still twice the size of JQuery.min GZipped.

    I also want to note that while you didn't imply otherwise, dystroy's comment is correct, and in fact contradicts the badly-written Wikipedia explanation; "Concatenating" JavaScript files might be less useful now. Minifying them still has its benefits. Just wanted to mention that, in case you happened to get some information there. In fact I'd edit the page myself if I wasn't worried about getting into an edit battle.

    CSS likely has fewer opportunities for symbol reduction. Theoretically, all it would get is whitespace and comment removal.

提交回复
热议问题