I wonder what this does for SEO:
Say I got a backoffice that contains articles, and that is accessible via a JSON service.
I would then use JSONP to fetch, and render the data using JavaScript as follows:
<body>
<script src="http://myjsonservice.com/getarticles?callback=myRender" />
<script type="text/javascript">
function myRender(jsonObj){
//parse the object, and put it as children to the content-container div below
...
}
</script>
<div id="content-container"></div>
</body>
I got a strong feeling this hurts SEO, but I am a SEO newbie (i’ve heard many pages with hardcoded content is somewhat optimal as far as indexing goes).
But is the content from the JSON service indexed AT ALL by Google? Ie. do the bots hit the url, let JS modify the DOM, and index the in-memory DOM (rather than the hardcoded html markup only)?
I wonder what you all think!
I don’t think client side processed html is processed by search engine bots. You have to add keywords in the header of the page or something. See also this SO question, especially the phrase: In general, searchbots should be treated as browsers with JS disabled