From the course: Developing for Web Performance

Unlock this course with a free trial

Join today to access over 22,700 courses taught by industry experts.

HTTP/2 and multiplexing

HTTP/2 and multiplexing

- [Instructor] Browsers and servers use the HTTP protocol to talk to each other, and send and receive files and data. In fact, every interaction happening between the browser and the server is an HTTP transaction over this protocol. When you interact with content on the web today, you're using one of two different versions of the HTTP protocol, either the old HTTP/1.1 or the more modern HTTP/2. Which protocol version is in use has a significant impact on the performance of the site. Let me explain. In HTTP/1.1, all files requested by the browser are loaded synchronously, one after the other. So a typical HTML page with two style sheets, a couple of images, and some JavaScript would require the browser to first load the HTML document, then the CSS files, then the JavaScript files, and finally the image files one after the other. This is slow, inefficient, and a recipe for terrible performance. To work around this obvious…

Contents