Due to complexity, missing features, and browser bugs, I don't think I'd recommend HTTP/2-push to anyone unless they'd exhausted all other optimisations (including link[rel=preload]), and have a large expert team to deal with the fallout.https://jakearchibald.com/2017/h2-push-tougher-than-i-thought/ …
-
-
Hmm, I think of H2 push as being really low level. Eg you have to understand when the browser will use multiple connections to the same origin etc etc.
-
But it also interoperates with a whole bunch of nonobvious spec things (leading to questions like multi-conn that you wouldn't predict). On the web, I think it's not obvious that there are major wins from shimming the spec's normal HTTP this way.
End of conversation
New conversation -
-
-
Also a pretty annoying issue: If you H2 push some modules, you still can't evaluate leaves until you reach them by parsing from the entry point, which means you need all of the modules before you can start executing. We have no "here's a module and plz eagerly evaluate" in H2.
-
Yeah, and since it's a network-level feature, it can't do that. https://www.chromestatus.com/feature/5762805915451392 … is in Canary tho!
-
Does this just load or also eagerly evaluate?
-
It does everything short of executing it.
-
So close! So close!
-
If it also executed, what would be the difference between it and <script type="module">?
-
It would allow you to fetch a graph of modules (with names) in order from leaves, and execute the leaves as they come. Today, if you have a -> b -> c and you push c, b, then a, you still have to wait for a to evaluate c, because top import in a is what kicks off eval.
-
In a large graph, this means that you can't start executing at all until you have an entire subgraph starting from the root, which is deeply suboptimal compared to topsorting the modules and evalling the leaves upward.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.