As we've already seen, Microsoft had a version of
XMLHttpRequest pretty early on. Mozilla quickly followed,
by adding support to Gecko, but it wasn't fully-functional until around
2002. Other browsers eventually implemented similar functionality, prior
to standardisation by the W3C.
Meanwhile, Jesse James Garrett published an
essay entitled Ajax: A New Approach to Web
in February 2005. Garrett cited
XMLHttpRequest as a major
component in what Adaptive Path dubbed Ajax.
The importance of this new approach quickly became apparent. The main
lesson people took away from the essay was the power of asynchronous
client-side code. The term Ajax quickly became synonymous with the more
I still prefer Adaptive Path's original definition of Ajax, and I think
it's useful to draw a distinction between the terms. It hasn't helped
The W3C published a working draft for the
object in April 2006. The last version is draft 19, published November
Even though the first draft of this spec was 2006, 2005 was the start of
the web 2.0 revolution.
Interest in web applications waned after the dot com crash. This was the
era in which I graduated, so I have first-hand experience trying to
survive in that period. Thankfully, by 2005 Garrett's essay and popular
sites like Google Maps inspired a new breed of web application.
I remember colleagues telling me that Ajax was dangerous because of the
number of HTTP requests clients would generate back to the server. It
started to appear that addressed web 2.0 technologies like
The first library I remember using was Prototype by Sam Stephenson. It
used a lot of conventions from Ruby, and it was popular with Ruby
developers due to ties with Rails. It made
easy to use, and it also patched a lot of cross-browser issues which had
Other libraries also appeared in 2005:
Scriptaculous built on Prototype to provide rich UI features.
Libraries like Prototype were influenced by other programming languages.
Their internal structures and APIs are similar to traditional OO
classes. While libraries were battling to support the next fashionable
UI widget, other developers were wondering if there was a more natural
One of these brave souls was John Resig. In Selectors in
to CSS selectors.
of jQuery. A year later, jQuery 1.0 was
I have a lot of respect for Sam Stephenson, Thomas Fuchs and John Resig.
They took their projects in different directions and made a lot of
things easier for us developers in the trenches. The lesson we can take
away from this period, however, is that playing to the strengths of your
language will always pay off in the end.
As kangax pointed out this year, Prototype's approach of extending the
DOM has major issues. It looks like Prototype 2 might work more like
jQuery. Rather than bringing in a Ruby, Python or Java influence, Resig
stuck to his guns and looked at how to write natural JavaScirpt, and
this approach paid off.