Streaming with fetch

This is an example of different ways of loading data onto a page with fetch.

On the left, the response is gathered using response.text() and then printed to the page. On the right, the body is used as a ReadableStream and printed to the page as it arrives.

Check out the source on GitHub.