Do Google's crawlers interpret Javascript? What if I load a page through AJAX?

web-crawler

Solution

Updated: From the answer to this question about "Ajax generated content, crawling and black listing" I found this document about the way Google crawls AJAX requests which is part of a collection of documents about Making AJAX Applications Crawlable.

In short, it means you need to use `<a href="#!data">...</a>` rather than `<a href="#data">...</a>` and then supply a real server-side answer to the URL `path/to/path?_escaped_fragment_=data`.

Also consider a `<link/>` tag to supply crawlers with a hint to SEO-friendly content. `<link rel="canonical"/>`, which this article explains a bit, is a good candidate

Note: I took the answer from: https://stackoverflow.com/questions/10006825/search-engine-misunderstanting/10006925#comment12792862_10006925 because it seems I can't delete mine here.

Problem

When a user enters my page, I have to make another AJAX call...to load data inside a div. That's just how my application works. The problem is...when I view the source of this code, it does not contain the source of that AJAX. Of course, when I do wget URL ...it also does not show the AJAX HTML. Makes sense. But what about Google? Will Google be able to crawl the content, as if it's a browser? How do I allow Google to crawl my page just like a user would see it?

Original source