Mobile app version of vmapp.org
Login or Join
Jamie184

: When creating HTML for _escaped_fragment_ AJAX pages, how correct does it have to be? I have a javascript heavy site (It really couldn't be coded in any sensible way with progressive enhancement)

@Jamie184

Posted in: #Ajax #Seo

I have a javascript heavy site (It really couldn't be coded in any sensible way with progressive enhancement) and I am using Google's advice for making AJAX websites crawlable. (i.e. use "?_escaped_fragment_ in place of '#!')

My question is this: How closely does my flat HTML need to match the AJAX created HTML for users?

I imagine Google must be checking some of the AJAX content, as otherwise this would be an easy way to do cloaking. I don't want to cloak in any way, but it is difficult to produce the exact HTML source that AJAX generates on the server-side? Would a rough approximation be good enough?

Anyone have any experience in doing this?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Jamie184

2 Comments

Sorted by latest first Latest Oldest Best

 

@Jamie184

I thought I'd answer my own question now that I have some experience of coding such a system. It seems that having a rough approximation is sufficient. The solution I have coded:


delivers very
similar (but not identical) markup
(by this I mean not all attributes
are always populated)
about 80% of
the same content appears (the crawled
version is a strict subset of the
user version)
The content, while the
same, is ordered differently


Google now seems to have indexed over 2000 of my pages now, and we are seeing real (yet very small at this point in time) search traffic.

I have posted more details on my blog at blog.dansingerman.com if anyone is interested.

10% popularity Vote Up Vote Down


 

@Welton855

The contents should be equivalent. Optimally, you would want to render the page using a browser exactly like a user would see it. Practically, there will always be differences, as there are differences when rendering the same page in different browsers.

At any rate, there's no easy measure for "close enough" when it comes to comparing different web-pages, so it's not like someone could say "90%" is good enough :-). I would recommend making sure that all of the content is visible appropriately and that the (visible & semantic) structure of the page matches the page as it would be viewed by a user. You should aim to provide the same level as you would use to render Flash-content in HTML for AJAX-crawling.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme