Blogging My Life...
Connect with me on Facebook, Follow me on Twitter & subscribe to my blog.

Monday, February 27, 2012

Making AJAX Website Crawlable


Many people want to build website using AJAX principles but are afraid of not being crawled by search engines. Through AJAX, particular section of webpage alters without refreshing the entire page. It exchanges data between browser and server without reloading the page. Despite having these functionalities, it is still not favored by search engines.

WHY?????

Data present over Ajax pages behaves like being temporary in nature. That’s why search engines don’t like to crawl it. 

As it is dynamic in nature so it is not practical for crawlers to index such data that is not available while crawling.

Ajax is purely JavaScript and search engines discourage JavaScript.

It is also not supported by sitemaps.

This issue is prevailing from the very beginning of implementation of Ajax for the development of websites but my interest into it developed when I came across a project on Scriptlance. A web owner was very annoyed because Google was not considering his pages for crawling.


His pages were linked this way


Google was viewing only 1 page of his website while he has more pages to show.

What’s Solution?????

This is what I learned from spending few hours on research. A little JavaScript function that’s part of ‘HTML5 History API’ called window.history.pushState () can make our Ajax lives easier. It changes the path of the URL that appears in the user's address bar. Until now, that's not been possible.

Look at this page http://html5.gingerhost.com/

On clicking cities on the top navigation, you'll be able to see that only the main content is being loaded in with each click; the page navigation. 

Other than Ajax this much fast speed of loading page is not viewable so far at least by me.


No comments:

Post a Comment