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?

Costi Khamis
Costi Khamis
12,061 Points

AJAX via jQuery or Fetch

If I am already using jQuery on my website, would there be a performance difference if I replace my jQuery ajax method with fetch. I use jQuery in my website for the navigation bar, animations, and other various features

1 Answer

Steven Parker
Steven Parker
231,269 Points

Since fetch is integral to the JavaScript engine, it's probably a bit more efficient than the external jQuery library.

But also since much of these operations involve waiting on an external resource to respond, there might not be any visible difference in the responsiveness of your application.