marko icon indicating copy to clipboard operation
marko copied to clipboard

Is support for HTTP2 in the roadmap?

Open StarpTech opened this issue 6 years ago • 2 comments

Description

Marko heavily relies on asynchronous rendering and streaming. It use HTTP1 Chunked transfer encoding to respond chunks out of the order which are then assembled on client side. With HTTP2 we can use more efficient mechanism like server-push, Stream Prioritization

In-depth explanation: https://www.ebayinc.com/stories/blogs/tech/async-fragments-rediscovering-progressive-html-rendering-with-marko/

Browser support

https://caniuse.com/#feat=http2

StarpTech avatar Mar 05 '19 14:03 StarpTech

I'm actually pretty interested in getting something with HTTP2 up and running with MarkoJS since Chunked Transfer Encoding is forbidden with HTTP/2.

ianvonholt avatar Mar 29 '19 18:03 ianvonholt

While HTTP/2 does forbid Transfer-Encoding: chunked, it still can stream partial responses, just like chunked TE.

tigt avatar Jan 29 '20 21:01 tigt