The term AJAX may have not been coined until 2005, but it’s origin stretches all the way back to the early 2000’s, when browsers provided developers with the glue between clients and servers.
In the summer of 2001, Paul Bucheit sent a website he was working on to his friends and colleagues. The site was an application where users could search through thousands of emails at a time and get back relevant results.
Bucheit had finished the software in a single day, so it was a bit rough around the edges. But there was really only a single request from his friends. It would be great if the software could search through their emails. See, in its first version, only Bucheit’s email was accessible to every user that visited the site. Bucheit made a note of that and got back to work.
Google released Gmail to the public a few years later. It had more than a few things going for it. Gmail came with 1GB of storage (most competitors offered 4MB) and effective search. At the beginning the only way to get access was through an invite, so it had an exclusive feel. And most impressively, Gmail’s interface was snappy and responsive. The search bar would autocomplete as you typed. Conversations were organized into expandable, easy to read threads. And every time you clicked on an email, the message would load almost instantly. There was no doubt about it. Gmail was on the web, but it felt like a desktop application.
When Google acquired Where2 Technologies in 2004, the Rasmussen brothers were close to their last legs. A last minute investment deal had gone south and the two were in trouble of losing their company. Google’s acquisition came just in time to save them. For the last several years, Lars and Jen Ramussen had been working on a map application with a fresh interface. The app was based one the concept of tiles. Each tile represented a small part of the map, and stitching them together allowed users to navigate the map just by scrubbing their mouse around.
The app was built for the desktop, but Google co-founder Larry Page was a big fan of the web. He pushed the newly absorbed team to recreate their application as a website. Unaware of what was going on with Gmail, the team went about recreating their technology in the browser. Not too long after that, in February of 2005, Google Maps went into beta.
At the time, there was some pretty interesting things going on at Microsoft. Starting with Internet Explorer 3, Microsoft had added their own implementation of the Java Virtual Machine to the Windows operating system, and IE specifically, for the purpose of running Java applets. But almost as soon as they did, Sun (the creator of Java) sued Microsoft for failing to comply fully with the Java standard. Microsoft, already embroiled in a much larger antitrust suit, decided that they would simply remove Java from their operating system, and that would be that.
What that means is that data could be refreshed on the page without a full reload. It served its purpose pretty well. But all that work was just to get the Outlook website working the way it was supposed to.
But that didn’t stop other browsers from adopting this new functionality. Mozilla soon followed suit with an implementation of their own in Firefox. The function was used here and there over the next couple of years. The most notable of the bunch was Oddpost, an email web application. Oddpost made a lot design decisions in their application that have stuck around in email applications, such as the three-pane window. As far back as 2002, they were using the XMLHttpRequest function pretty extensively in their application. However, the site was paid and therefore didn’t receive that much attention until it was bought by Yahoo in 2005.
Even so, they pulled it off. Users took notice. The ability to fly through thousands of emails or scroll through a map tile by tile, without a lag, was… Well it was just plain incomparable. There have been a few times when the way the world thinks about the web makes a big shift. This was one of them. Both services took off, and in no time, the techniques behind them did too.
Ajax took off after that. It underpins major parts of modern web development, and has spawned a number of frameworks and methodologies. The technology itself has been swapped out over time. XML was replaced by JSON, and XMLHttpRequest by fetch. That doesn’t matter though. Ajax showed a lot of developers that the web wasn’t just about documents. The web could be used to build applications. That might seem like a small notion, but trust me when I say, it was momentous.