Replies: 4 comments 1 reply
-
I made some changes to the HTTP2 example to further illustrate this problem: https://github.com/vercel/next.js/compare/canary...mohsen1:http2-push?expand=1 Screenshot from the example above: |
Beta Was this translation helpful? Give feedback.
-
Have you considered making the page static, and fetching the required data afterwards from an api route? |
Beta Was this translation helpful? Give feedback.
-
I think HTTP/2 Push is an overkill for this. All we need to do is to start streaming the HTML HTTP response by sending the document |
Beta Was this translation helpful? Give feedback.
-
I wrote an RFC to implement eager |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Our server is kind of slow. Doing SSR means calling the slow server and waiting for the data before being able to send bytes down the pipe.
Is there a mechanism to start streaming HTML response before
getInitialProps
is completed? Maybe HTTP/2 Push can help?Beta Was this translation helpful? Give feedback.
All reactions