EDIT #2
I was able to find an answer from Google Support, read my answer below this question.
EDIT #1
I think this is more an SEO question than a technical question (although it is technical to some extent), so I will find out somewhere else and post the answer here when I have something to share.
Let me start by saying that I'm no jQuery/JavaScript expert, so to some of you this question may sound dumb.
I need to 'inject' content/HTML into one of my pages but without altering the DOM. Note that I said INJECT not REPLACE or ADD. This is for SEO reasons since this content is not to be indexed by search spiders.
The current solution implemented by another developer was to create a bunch of images with the text, so right now the site has more than 60 HTTP requests just for that mere section. Yeah.
Anyway, I'm thinking that the solution is to inject this content on the page via a JavaScript file that contains that content, that way in the markup of my page I only have a <script src="js/testimonials.js"></script>
for example, the browsers will be able to execute this file and display the content in it, while the search spiders will not be able to crawl that content since it's in a JavaScript file.
I've tried jQuery's .html();
method but of course the HTML in the JS file gets placed on the actual page thus making that content indexable by search spiders. That was my initial thought, but this is incorrect. Read my answer below this question.
This is what I tried:
$(function () {
$('.testimonials').html('test');
});
I've been unable to find a solution for this around here in SO and around the web.
Any help to accomplish this is greatly appreciated.
Thanks in advance,