Adam Argyle
Adam Argyle2y ago

Looking to chunk the HTML stream on the homepage to reduce initial page load. Are there good docs?

I'm currently reading and transforming every markdown file in the render function and i'd like to instead yield chunks of markup so the browser can get started rendering sooner. is there a paved path for me in fresh? thanks!
5 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam Argyle
Adam Argyle2y ago
can i call ctx.render() multiple times? or yield results to it over time / async?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam Argyle
Adam Argyle2y ago
tryin to avoid client side js i have a couple islands now, but they're very much tiny islands and not big ones maybe this would be more of a preact render to string feature?
Adam Argyle
Adam Argyle2y ago
GitHub
Streaming renderer: factor chunking out of main entrypoint and reba...
This reimplements #259 atop #241, so that we can merge both and publish it as a single major. With these changes, the streaming implementation imposes almost no overhead on non-streaming rendering....