Hello, I just thought I would share a page design tip that I started using a few months back and had great results with. In an attempt to give my content focus to a search engine, or adsense crawler, I packaged the majority of the "code" on my site from the header and footer sections (and any non-content sections) into javascript includes. I basically created javascript functions that would write out these non-content sections. Viewing the source of my pages would now show 80-90% content/text, and a few javascript function calls. After a few days, my pages were showing much more relevent ads on a more consistent basis. And of course this increased my CTR and earnings.... Hope someone finds this helpful.... Good luck!
One problem with this technique is that if visitors to your site do not have javascript enabled, they won't see the headers and footers.
Yes, very good point. Unfortunately my site relies on javascript for many features, so this approach doesn't hurt my situation. But if you are a more pure site, I can see this technique could make you less compatible across all platforms.
Nice tip, thanks a lot for sharing, my3cents. But I think I'm seeing another problem with this - how is Google going to index your whole site if you actually only show the content and have all the links from the navigation in the JS?
Thanks Mika and Sayles. I actually consider links to be content, and as such they are not inside my js includes.
Hi - Sorry if this is a dumb question: Am I understanding this correctly: the purpose of putting header/footer into Javascripts is to get them out of the html text, this allowing your core page content (text) to be more influential of the ads??
You can also use PHP includes, that way, in case people don't have Javascript enabled, they can still view your whole site.