Let's say we are using server-side rendering for a website.
The website has a static header, but for the body we need to fetch a product list from a 3rd party.
Let's say fetching the product list takes 500ms.
Instead of constructing the complete html file on the server (takes > 500ms) and only then sending the html file to the client, we want to start streaming the header immediately. Because the browser can parse html files incrementally, the user should be able to see the header even before the list has been fetched on the server (Let's assume the website has no CSS and no JS).
Ilya Grigorik describes this approach in more detail here.
How would a basic version of this look like in NodeJS?