Remix.run Logo
▲ Aarostotle a day ago

The element can’t render until it’s closed, presumably.

▲esprehn 12 hours ago | parent | next [-]

That's not how html works. The html parser is by definition streaming.

▲hollowturtle a day ago | parent | prev [-]

Html partial streaming is a real thing, presumably

▲Aarostotle a day ago | parent [-]

maybe I'm just wrong here? If the tokens <b>come through this text could still be optimistically turned bold until </b> happens.

For elements that manage layout and drawing things like these explainers, though, it's hard for me to imagine how that would work. My immediate thought would be to an abstraction over it, which is what it sounds like they did.

▲LittleLily a day ago | parent [-]

They could also just be creating all the html elements using javascript (i.e. document.createElement, document.body.appendChild, etc) and streaming that into a repl line by line.