Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript What is the Fetch API?

Stefan Cutajar
Stefan Cutajar
7,747 Points

Should you still learn the Jquery part to make data requests (the final part of AJAX basics course) ?

Is this the way to do it these days or there will be certain occasions that jquery will still be in handy. I'm not trying to take shortcuts or anything like that but I'd rather learn something more useful in my free time than an obsolete technology

5 Answers

Roger Hwang
Roger Hwang
3,851 Points

Am also curious about this question. Why not just use Fetch API with the aforementioned benefits?

Personally I wouldn't bother with it if you're not already using jQuery in a project. There's nothing jQuery can do that you can't do in vanilla JS.

As in the video, and still now, IE doesn't support the Fetch API at all (incl IE 11)

https://caniuse.com/#feat=fetch

Also, XHR and jQuery aren't that hard to learn, and will help you to understand the mechanics of how async code works. The Dave McFarland course on this is great, and not so long. My two cents are that its worth learning all of them.

Johan Uribe
Johan Uribe
2,677 Points

Same question here.