How to create Ajax website that Google can crawl and index?

There are many methods to make Ajax operations crawable by Google and other search engines. Many are still saying it’s not the right time yet to use Ajax for all dynamic content. I disagree! Google already introduced their method to make this work but it’s too complicated and needs a lot of additional programming time to make it work properly.

I on the other hand have a great idea that’s stupid simple, works for Googlebot and browsers with disabled Javascript. Isn’t that great!? :)
Even dough I came up with this idea myself, someone elase in the world had the same idea before me and it’s called Hijax. So what is Hijax in definition?

Hijax is combination of words Ajax and Hijack and that’s it’s core functionality. Hijax uses both Ajax and Javascript when available (to create those magical effects that Desktop apps had for decades). Hijax is using Javascript when available to hijack HTTP request (when website visitor makes a click on a link to another page) and enables Ajax magic to happen. But, when you open the page in a browser that doesn’t have Javascript enabled, the website functions as it should (without fancy effects that Ajax can provide), it opens the page with preloaded content. Hijax method is a great time and bandwidth saviour.

And finally the interesting part.
The example, dead simple:

<a href="page-2.html" onclick="AjaxCall('page-2'); return false;">

* Use this method on all links intended to work with Ajax calls.

That’s it! So simple! We are already using this method on our new company website that’s currently in development.


Leave a Reply

Your email address will not be published. Required fields are marked *