AJAX and SEO, will they ever be united?
Uncategorized

AJAX and SEO, will they ever be united?

10th June 2010

AJAX, along with Flash the ugly kid of web development for SEO, was introduced in 2005. The expectations were high but it never really got popular. A survey in October 2008 reported that 3.20% of the web pages tested used the XMLHttpRequest DOM object, an important part of AJAX.

The combination of AJAX and SEO has never been a good one. SEO has a strong fundamental basis in the document structure of the web. AJAX creates possibilities to discard the document structure of the web and offers a way to create single page websites. Gmail for example is a single page website.

AJAX and SEO seem like two worlds which cannot be united, or can they? While extensive use of AJAX should be a threat to SEO it doesn’t get that much attention. A search for ‘AJAX SEO’ in Google returns mainly articles dating from 2006, 2007 and 2008. Time for a little update.

What is the function of AJAX?

AJAX (Asynchronous JavaScript And XML) is a group of interrelated web development techniques used on the client-side to create interactive web applications.” The main advantage of AJAX is that it offers the possibility to update information on a webpage without refreshing the whole page. While remaining on the same page, with AJAX you can update parts of the content for users. The possibilities of AJAX for creating more dynamic websites are great and widely appreciated, but the use of AJAX also comes with a lot of restrictions in other areas. Think about web analytics, bookmarking, the use of back buttons and of course SEO.

AJAX and SEO implications

The basis of SEO is that every page with different content is in fact a different document, therefore it has a different location (URL). When the content of a page changes it becomes a different document and should therefore have a different URL. Before AJAX this happened automatically. With AJAX new content can be requested from the server without refreshing the page. Since AJAX uses JavaScript to generate the page with new content search engine robots cannot crawl these altered pages. Therefore any content that’s only accessible through AJAX requests will not be indexed by search engines. There are however some possible solutions to this problem.

Possibilities of AJAX for SEO

On the other hand AJAX may offer some possibilities for SEO. There might be information you want to show to your users, but not so much to the search engines. This is where AJAX can be used in your advantage for SEO.

For example, when you have a product page with the basic information about a product (/product/). You might want to show the user a page with the specifications of that product as well. You could create another page with the product specifications (/product/specs/). However search engines will be able to index this page and this page will gather value next to your original product page. Now you have two pages optimized for the same product. Imagine if you have even more pages with information about this product.

Instead you could update the content of the product page with the specifications of the page through an AJAX request (/products#specs). This way you can show extra product information without creating an extra page. And best of all: with the use of the # in the URL users can link directly to the specifications but the link value for search engines will go to the original product page you want to rank for.

Other actions you could complete with AJAX (in order not to produce new pages you don’t want to be indexed) are:

  • Direct feedback on form submissions
  • Updating shopping baskets
  • Adding suggestions in input fields
  • Organizing information on a page (dragging, filtering or sorting)

Solutions for AJAX and SEO

The limitations of AJAX for SEO has been asking to be solved for a long time. The problem with making AJAX crawlable is that all the content not meant for indexation could be indexed all of a sudden. The fact is however that search engines are working on a way to make AJAX crawlable. Google, as an innovator in improving the web, sees the benefits of AJAX and has been using it already for a long time. Gmail as well as Google Wave and Google Maps thrive on the possibilities and the speed of AJAX for the usability of its interfaces. Google even developed a web toolkit for development of AJAX applications. Therefore they also wrote a guide on how to make AJAX applications crawlable. The way search engines want to make AJAX crawlable will not interfere with the way AJAX is used now, but it offers a way to make certain specified information crawlable and regular AJAX applications not. In March of this year Google officially announced that they started crawling AJAX. And the first results are already here:

Tags

Written By
Jeroen van Eck is a consultant search engine marketing at the online marketing company E-Focus in the Netherlands.
  • This field is for validation purposes and should be left unchanged.