Subscribe to my full feed.

Wednesday, August 01, 2007

Don't Use Ajax for Your Website

As web 2.0 becomes the craze that is taking over the internet. More and more companies are developing websites and applications using AJAX. If you look at job postings on Monster or Dice, one of the most common web developer requirements is that the candidate of experience with AJAX.

Find a website that uses Ajax, right click and select view source. What do you see... html, head, and body tags. Thats about it, there is no source code to be read. Here is the issue, what you see when you click "view source", is the same thing that Google's web site crawler sees. Which means that Google sees a blank page equaling no text or information for Google to cache and index.

If Google (and the others) cannot read your websites content, then your website will not show up in search results. In order to have an Ajax website that is compatible with search engines, you have extra work to do.

IMHO: Leave Ajax for intranet and extranet websites, websites that are private and not indexed or searched by search engine crawlers. It is not worth the time or money to program extra code so that a search engine can index your site.

Chris

3 comments:

Craig Wood said...

You are being very simplistic Chris, There are good uses for Ajax, lots of them, and there are SEO reasons to have good static content, you need to reach a balance.

Unknown said...

Don't forget about flash. My uncle's site was redone entirely in flash and now google turns up almost no useful information.

Ajax and Flash are powerful tools but they should be used where appropriate.

Chris said...

I never said there were not good uses for AJAX. But I don't like to build static websites, for my clients nor myself. Most of my clients do not wish to have to have to edit the documents/code to change the content on their website. If you were building a public web site primarily with AJAX, you would have to have static content or write extra code so that a site crawler could read it.