Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The new jQuery Templates from Microsoft and SEO

Scott Guthrie just blogged about the new jQuery Templates that his team has been working on, and I must say... this looks really sweet. I have a multi-part question however, where the answer will influence my decision to use them.

I'm currently working on a project whereby the home page displays a list of upcoming events in your region. The event listing is much the same as that in http://nerddinner.com (but I'm not using any of their code).

I'm thinking about using the new jQuery Templates to format the information sent from my Controller (MVC). The current way I'm doing this is to send the ViewModel Object to the view (with all of the needed content), but to ALSO serialize the same ViewModel Object into JSON (passed using ViewData) that is used by the Bing Maps. Now I'm assuming that there's a performance hit in sending the same content twice, and therefore I think that sending JSON only and using it for both the Bing Maps and the content (using jQuery Templates) is a great idea.

In walks my question. Can search engines read the JSON in the page (and if so, will they use it for indexing), or are my pages going to be "blank" to the search engine because I'm displaying the content AFTER the page renders? The second part of this question is that, IF SEO will be affected, is there a better way of accomplishing what I need, or am I stuck sending the content twice? (remember, the map info and the content info will be exactly the same).

like image 846
Chase Florell Avatar asked Oct 06 '10 00:10

Chase Florell


1 Answers

The templates are all JavaScript at the moment, something a crawler isn't going to execute. Google support AJAX enabled sites in a certain format...but no you won't see crawler support for this, at least not in the new future.

If anything, it'll hurt SEO...the price you pay for using newer technologies/formats the crawlers aren't designed to handle yet.

Warning: This answer has a shelf-life (hopefully) and should be invalid at some point (current date - Oct 05, 2010)...someone please edit me when this happens (and search engines handle this well).

like image 176
Nick Craver Avatar answered Oct 14 '22 01:10

Nick Craver