When it comes to writing in native JavaScript, ajax is a really painful job to get it right, especially when you would like to have cross browser support.

Fetch to the rescue

I have come across the most impressive fetch API, which allows you to make ajax requests just like you would on jQuery or other similar libraries but on a native JavaScript way.

A lot better than the old-fashioned xhr requests. (source: http://www.quirksmode.org/js/xmlhttp.html)

 

I am in What next?

Well, you have a number of options:

that’s all folks!