In JavaScript there are many options for making requests to external resources. You can use the built in XMLHttpRequest method. There’s also many libraries you can use such as jQuery and .ajax(), or you can also use Axios.

But in this post I will be talking about the new JavaScript fetch API. Please note this is only supported by newer versions of Chrome, Firefox, Edge, Safari, Opera, and is not supported by Internet Explorer at all. Which is why it might be a good idea to be using Babel with your JavaScript project if you’re not already.

First I’ll go…

Craig Stroman

I’m a front-end engineer who builds apps.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store