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) AJAX Concepts A Simple AJAX Example

Jasper Peijer
Jasper Peijer
45,009 Points

Is AJAX built-in in JavaScript, unlike jQuery? Or do you need to import it and how.

Is AJAX built-in in JavaScript, unlike jQuery? Or do you need to import it and how.

1 Answer

Steven Parker
Steven Parker
231,172 Points

"AJAX" is a technique, but the XMLHttpRequest object used to implement it is built-in to the JavaScript engine in all modern browsers (except for Opera Mini). It does not need to be separately loaded before use.

However, the jQuery functions do make it quite a bit easier to use than the native facility.

Jasper Peijer
Jasper Peijer
45,009 Points

Okay! Thanks for replying so fast!