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•2y ago
Message Not Public
Sign In & Join Server To View
can i call
ctx.render()
multiple times?
or yield results to it over time / async?Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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?
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....