Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HTTP/2 is here, now let's make it easy

HTTP/2 is here, now let's make it easy

Members of the front-end community are among the most likely to champion HTTP/2. The spec may be finalized, but HTTP/2 is incomplete without a developer ecosystem to support it.

Presented at DotJS in Paris.

Rebecca Murphey

December 07, 2015
Tweet

More Decks by Rebecca Murphey

Other Decks in Technology

Transcript

  1. http/2 is here, let’s optimize now let’s make it easy

    Rebecca Murphey / DotJS 2015 / Paris
  2. http/2 one connection 
 per host* handles 
 all requests

    server push 
 (no more inlining!) prioritization https required 
 by browsers * through connection coalescing, hosts that resolve to the same IP can share the same connection
  3. How a web server determines what a 
 client needs

    before the client knows
 is seriously challenging, especially for 
 general-purpose web servers which need to allow site owners to tune certain aspects for best performance and reliability. The heuristics for determining what to push vary. https://caddyserver.com/blog/implementing-http2-isnt-trivial
  4. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>separate</title> </head> <body>

    <script> setTimeout(function () { var s = document.createElement('script'); s.src = "/common/libs/combined.js"; document.body.appendChild(s); }, 200); </script> <!--load a bunch of jquery’s--> </body> </html> /index.html?push=/common/libs/combined.js
  5. Members of the front-end community are among the most likely

    to champion HTTP/2. The spec may be finalized, but HTTP/2 is incomplete without a developer ecosystem to support it.