Skip to content

Instantly share code, notes, and snippets.

Jumping over Rainbows...

Theofanis Despoudis theodesp

Jumping over Rainbows...
View GitHub Profile
// This is a proper alternative to
// The one in that file uses Promise, but that's *wrong*.
// We only used promise as a demo of its API. We'll remove it soon.
// As you can see below, the pure XMLHttpRequest code is just as clean,
// less mysterious for all, more performant, extensible, and actually correct.
// Ignore these externals for now. They're just for illustration
// purposes. I just copy pasted the Js code from