HTML Streaming
See original GitHub issueHere’s one example of using
renderToNodeStream
What sticks out to me in that example is the the first write includes the
<head>
assets
Should be possible to do the same by using pageContext._pageAssets
instead of html._injectAssets()
.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:38 (23 by maintainers)
Top Results From Across the Web
The weirdly obscure art of Streamed HTML
Streamed HTML uses less memory. Instead of building the full response in RAM, it sends generated bytes immediately. More robust and faster than ......
Read more >HTML Streaming - Application Performance, Scalability | Section
HTML streaming speeds up the TTFB by dynamically caching parts of the HTML document without affecting elements of the page that are unique...
Read more >How to Optimize for HTML5 Video Streaming & HTML5 Video ...
Overall, HTML5 video streaming enables the manipulation of multimedia content using <audio> and <video> HTML tags. Using the <video> tag ...
Read more >Streams API - MDN Web Docs - Mozilla
Streaming involves breaking a resource that you want to receive over a network down into small chunks, then processing it bit by bit....
Read more >Streaming HTML, Solid 1.3, and More - YouTube
This stream I want to focus on HTML Streaming (looking at Solid, React, and Marko) and cover some of the other features that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/brillout/vite-plugin-ssr/blob/f0c799852e34e965772ac66b952b6d5d08b9c825/examples/react-full/renderer/_default.page.server.tsx#L16 https://github.com/brillout/vite-plugin-ssr/blob/f0c799852e34e965772ac66b952b6d5d08b9c825/examples/react-full/renderer/_default.page.server.tsx#L30 https://github.com/brillout/vite-plugin-ssr/blob/f0c799852e34e965772ac66b952b6d5d08b9c825/examples/react-full/server/index.ts#L34-L35
I will also implement a CF workers Vue HTML streaming example.
@jfsiii Yes
vite-plugin-ssr
does support stream piping https://vite-plugin-ssr.com/html-streaming, and no AFAICT it should already work with React’s new piping thing.