Comment by bythreads

Comment by bythreads 6 months ago

2 replies

Iframes lazy

Object content as lazy

Embed lazy

Image lazy

Link rel=import (not support that widely though)

Heck if you wanted to get REALLY cute you go use multipart-mixed-replace headers.

Or SSE

DanielHB 6 months ago

You could use some simple CSS tricks (like flex-direction: column-reverse) to make the end of the HTML render above the search results and just keep appending the AI generated text to the HTML without closing the connection.

bythreads 6 months ago

now that i think about it you could do it quite nicely with svg's and foreignObject