manually handling streaming html is amazing and not nearly as difficult as I thought it was... Streaming plus declarative shadow dom for out of order rendering is kind of magic.
Now would anyone know why its not working in safari? it is working fine in chrome and firefox.
There are my headers.
ctx.res.headers.set("Content-Encoding", "chunked");
ctx.res.headers.set("Transfer-Encoding", "chunked");
ctx.res.headers.set("Content-Type", "text/html; charset=utf8");
ctx.res.headers.set("Cache-Control", "no-cache");
ctx.res.headers.set("Connection", "keep-alive");
ctx.res.headers.set("X-Content-Type-Options", "nosniff");