Comments on Using HTTP/2 Responsibly: Adapting for Users

7 Reader Comments

Back to the Article
  1. Hey Jeremy, thanks for the article(s). While there’s undoubtedly some very interesting content and good practices, I don’t totally agree with you when you state that one needs to avoid image sprites, css/js concat and uglification.

    Though these optimisations specifically tailor HTTP 1.1, it doesn’t mean they are never suited for HTTP2.

    Despite H2’s ability to do multiplexing, many small files don’t gain as much from compression as one big files.

    Moreover, for many small files, you have to consider the http header overhead (that may represent a significant part of the total HTTP request size on tiny files).

    That’s why sometimes it’s still smart to serve some assets as sprite, or concatenated files rather that an endless list of a few kb each.

    Go the smart route and never forget to test!

    Here’s a nice study about H2 performance with sprite assets

    Copy & paste the code below to embed this comment.
  2. Hi Jeremy. Thanks for the article!

    Reading the article and the comments, I’m not entirely clear what will be the “correct” way to use http/2 protocol, like using sprites or not.

    What is the most “correct” option?
    And how much time do you think it can take to improve 78% of browser compatibility?

    Copy & paste the code below to embed this comment.
  3. Hi,

    @Buzut1, when you say:

    > Moreover, for many small files, you have to consider the http header overhead (that may represent a significant part of the total HTTP request size on tiny files).

    Please note that HTTP Headers have a very less significant impact in HTTP2 than in HTTP1 (for both requests & responses)

    In HTTP2, standard HTTP headers are coded in binary, and the whole header sections are compressed using maps shared between the client & the server: https://developers.google.com/web/fundamentals/performance/http2/#header_compression

    Copy & paste the code below to embed this comment.
  4. @Alexandre Great text on the fundamentals, thanks for the share!

    Copy & paste the code below to embed this comment.
  5. Sorry, commenting is closed on this article.