Basically, Streams 🌊

So something (relatively) new and fun in browsers, are these two APIs: ReadableStream and WritableStream. 😮

What they allow you to do, is basically send and receive chunks of things progressively (that then combine into the final large thing), as opposed to moving around entire things.

Below is a living example of streaming vs. conventional transfer:

I am a bunch of text who lives here, but I'm bored of living here so I want to move trololololololol.

Pretty cool, huh?

So basically, what's happening is this:

All of this is visible in the source code (index.js). There's more cool things in the examples folder. Go, explore, have fun! Woooo!

More Examples 🎉

Further Reading: WhatWG Spec