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 AJAX Basics (retiring) jQuery and AJAX Introducing jQuery

Ivan A.
Ivan A.
9,627 Points

And what if?

Hey there people! And what if i DO NOT WANT to use JQuery for AJAX? it is possible to use vanilla JS for these kind of things. I know, i used it... The main problem with THIS(JQuery) in the JS course, that I COMPLETELY do not want to use JQuery... I want to know what is going on under the hood. And I have been more or less successful with this so far... So, what do I do? i don't want to use it... how do I complete the course?

4 Answers

Steven Parker
Steven Parker
231,084 Points

:point_right: The course uses jQuery. Learn it that way first.

AJAX is probably the most compelling reason to use jQuery, as it makes a huge reduction in the amount of code needed. But having seen how to do it that way, there are plenty of web resources for doing it without jQuery. Here are a few of the more popular ones:

Happy XMLHttpRequesting! :smile:

You should not excect from a modern teaching site like teamtreehouse to use techniques which are used in the time of Internet Explorer 6. Almost every site these days uses jQuery. So it's pretty much obvious that teamtreehouse will teach the modern way, which is also been used by most companies today. But this might help you: http://stackoverflow.com/questions/8567114/how-to-make-an-ajax-call-without-jquery

And yes in the challanges you must use the jQuery way

Erika Suzuki
Erika Suzuki
20,299 Points

And you prefer to write in raw JS because? The difference in speed of raw JS and jQuery is not really noticeable to the end-users.

There are instances where it's preferable to write in raw JS. For example, scripts that should be in the <head> part of the page. You do not want to wait for jQuery to load for that.