Content deleted Content added
→How HTTP/2 PUSH works at a protocol level: Fixed typo Tags: Mobile edit Mobile web edit |
No edit summary |
||
Line 7:
== Basic concept ==
Consider a website with three resources: index.html, styles.css and script.js. When a user, through their browser, connects to
With HTTP/2 Push, the server can take the initiative by having rules that trigger content to be sent even before it is requested. In this example scenario, the server knows that anyone requesting index.html will need styles.css and script.js, so it can push them to the client immediately without waiting for the client to request them. If done correctly, by the time the browser finishes parsing index.html, the transfer of styles.css and script.js would have already started, or even completed, removing the latency of having to request these and wait for them to arrive.
|