Skip to content

Instantly share code, notes, and snippets.

@kazuho
Created April 16, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuho/60179749eecbb332eae7 to your computer and use it in GitHub Desktop.
Save kazuho/60179749eecbb332eae7 to your computer and use it in GitHub Desktop.
The original `Background` section

One of the most prominent changes from SPDY to HTTP/2 is the introduction of dependency-based stream prioritization.

SPDY only had weight-based prioritization. In weight-based prioritization, every stream (e.g. file being served) is given a weight, and the value is used by the server to proportionally distribute the bandwidth between the streams.

HTTP/2 introduced a new scheme: dependency-based prioritization in addition to the weight-based approach. By using the added prioritization method, web browsers can advise HTTP/2 servers to send the streams that are depended by other streams before sending the other streams. For example, by using dependency-based prioritization web browsers can request the server to send CSS or JavaScript files before sending HTML or image files.

As of this writing, out of the two popular web browsers that implement HTTP/2, only Firefox uses dependency-based prioritization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment