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).