AJAX Tutorial Update

By Kai Gittens tags:  reading time: 4 min
image for the 'AJAX Tutorial Update' post

(Author's note - August 2025: This AJAX article and the tutorial it's referring to being discussed here is REALLY, REALLY old!!! Currently, the combined use of JavaScript's native fetch, async/await and Promise functionalities is the modern alternative to all this. And in the case of Promises, they weren't native at the time that article was published, but they're fully native now. So MDN's "Using the Fetch API" article covers the aforementioned modern alternative really well, but you may want to go through my AJAX article to get some historical perspective. -k)

Happy 10th Birthday AJAX!!!!

Ten years ago today, web developer Jesse James Garrett wrote his ground-breaking AJAX article and changed the world in the process. At least the world of web development.

If you're reading this and are a non-technical person, understand that AJAX described an efficient method to load content onto a web page. This method would come about eventually...the Internet was evolving towards it.

But if AJAX didn't happen for some bizarre reason, then the growth of the Internet would have stagnated. And Facebook, Twitter, Instagram, Foursquare, Pinterest, Apple and Google (especially Google) wouldn't have enjoyed the success they're enjoying today.

I have a really old AJAX tutorial that's in need of a serious update. So in honor of this birthday, I'm releasing an updated new, in-depth AJAX tutorial.

A preamble...

Every January 1st, I review my site's traffic for the previous year. For the past two years, my tutorial titled "How AJAX, HTML5 and jQuery Work Together" is always close to the top.

Again, this article is old...it was published on January 11th, 2011. Looking at it from that point a view, the article has some issues:

Another issue: Google Analytics showed that this post received little engagement despite the high traffic it was getting. People were staying on for a few seconds at most, no one shared it on social networks or linked to it.

My tutorial on removing files from GitHub was in the exact same position and I rewrote it in the hopes of increasing engagement...read about that here. I got to the point of the tutorial much quicker, made the content more "scannable", removed the images and used shorter words where possible.

The result of all this was an average of 1.5+ minutes more spent on the page and more Twitter shares.

I'm happy with that.

All this showed me that it's worth it to rewrite a post when the numbers indicate it, so I rewrote the AJAX post as a direct result. There are a few significant changes:

I wanted to discuss jQuery Promises a little more and discuss XHR2 (now discontinued), but all this would make the article longer than it already is and I want to avoid that. If this tutorial is well-received, I'll update things and consider adding those things.

Finally, if you read this I'm REALLY curious about your feedback. Is it too long? Too short? Is an important part not covered? Or covered too much?

Please let me know by either add a comment to this blog post or created an issue in the tutorial's issue tracker.

Now, please check out the updated AJAX beginners tutorial.