Hacker News new | ask | show | jobs
by shawabawa3 3709 days ago
It would help if the basic javascript api's were even vaguely useful

I recently tried to force myself not to use any libraries for a simple site. After a while I realised I had so much re-invention of stuff (AJAX in particular is madness without a library) that I ended up adding Zepto

With all the crap they're adding in ES6 you would have hoped they would add an ajax function at least

2 comments

it's called the "fetch" API. Not sure if it's in ES6
ah awesome.

Now we just have to wait 5+years until it has 95% browser share :)

Neither XMLHttpRequest, nor the Fetch API mentioned in a sibling comment are part of the JavaScript language. They are both web platform specs maintained by the WHATWG. The JavaScript committee (TC39) does not control these platform APIs.