HTTP/2 Push: The web development secret for reducing loading times


Today most people use a browser that supports HTTP/2 Push, a feature of the new HTTP/2 protocol. HTTP/2 Push is not the same as Push notifications, rather it is a mechanism built into HTTP/2 that enables web developers and operators to minimize the performance cost of network round-trips when fetching a webpage. In some cases the browsers spend a lot of time just waiting for data when loading a website. With HTTP/2 Push, this effect can be reduced and the website can therefore in many cases load a lot faster.

How to build a website with HTTP/2 Push

HTTP/2 Push allows a web server to send resources to a web browser before the browser gets to request them. It is, for the most part, a performance technique that can help some websites load twice or sometimes thrice as fast. Implementing a web server around the concept of HTTP/2 Push is a good opportunity to understand how the HTTP/2 technique works. There are many technical ways of doing HTTP/2 Push, but to try it out, recommended web servers are H2O (https://h2o.examp1e.net/) and ShimmerCat (https://www.shimmercat.com/).
Both are built from ground up in HTTP/2, and both take into account browser caching so that the server doesn't push assets that the browser already has in cache.
In this way the pushing becomes even more efficient and the website loads even faster. So try HTTP/2 Push today and discover the secret to a fast website!