Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push
by darkwater on Thursday November 12, 2020 @08:16AM
(#25069482)
> The fact that 99% of people are too lazy to learn a new trick shouldn't really hamstring people into using 30-year old tricks to get to a decent latency!
What amazes me is that in this <1% there is not even Google, which implemented push in its own protocol. Any insights on that?
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push
by randomtree on Thursday November 12, 2020 @11:32AM
(#25071548)
Looking at their highly optimized code on google.com, my guess is that they already use all the tricks that work on _every_ browser. And it might not make much sense for them to have two builds: one elegant, with multiple files per page for newer browsers, and ugly optimized blob for older ones.
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push
by aitchnyu on Thursday November 12, 2020 @06:54AM
(#25068841)
Would inlining CSS and JS work on web sites (not apps)? I kinda feel inlined JS will bypass bytecode cache and the parsing costs have to be paid on each page load.
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push
by sanxiyn on Thursday November 12, 2020 @07:29AM
(#25069096)
Inlined scripts do get cached, but cache is keyed to document's URL. Go https://v8.dev/blog/code-caching-for-devs and search for "inline".
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push
by randomtree on Thursday November 12, 2020 @07:26AM
(#25069057)
Yep, inlining only optimizes first page load.
Re:Blink: Intent to Remove: HTTP/2 and gQUIC server push
by earthboundkid on Thursday November 12, 2020 @09:46AM
(#25070407)
The whole point of this discussion is that push only optimizes the first load, and then it pessimizes all subsequent loads. That's why no one adopted it.
I use it on my pet project website, and it allows for a remarkable first page load time.
And I don't have to make all these old-school tricks, like inlining CSS & JS.
HTTP/2 Push allows for such a pleasant website development. You can have hundreds of images on the page, and normally, you'd be latency-bound to load it in a reasonable amount of time. And the way to solve it old-school is to merge them all into a one big image, and use CSS to use parts of the image instead of separate image URLs. This is an ugly solution for a latency problem. Push is so much better!
The fact that 99% of people are too lazy to learn a new trick shouldn't really hamstring people into using 30-year old tricks to get to a decent latency!