For more than a decade the Web has used XMLHttpRequest (XHR) to achieve asynchronous requests in JavaScript. While very useful, XHR is not a very nice API. It suffers from lack of separation of concerns. The input, output and state are all managed by interacting with one object, and state is tracked using events. Also, the event-based model doesn’t play well with JavaScript’s recent focus on Promi
![This API is so Fetching! – Mozilla Hacks - the Web developer blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/8f043099b608abf8384b24171faa177d3698e62e/height=288;version=1;width=512/https%3A%2F%2Fhacks.mozilla.org%2Fwp-content%2Fthemes%2FHax%2Fimg%2Fhacks-meta-image.jpg)