2

I am kind of fan of Github and it's Gists. Since the gists can be included via a small Javascript snippet and document.write commands, I was asking myself if they were SEO friendly.

0

2 Answers 2

2

Generally, no. These things get indexed only if Google makes it special case (like they did with Disqus and Facebook comments).

3
  • Okay. Thanks for the answer. Thought Google among others understood basic Javascript commands. And document.write being one of these. Thanks anyway.
    – iammichiel
    Dec 19, 2011 at 13:15
  • I'm think, I'm coming back on that vote. Recent searches have shown Google is actually able to execute some pretty complex javascript. Meaning document.write is IMO scanned. I will have to confirm it with some online tests.
    – iammichiel
    Jan 23, 2012 at 19:38
  • @Zenklys this is true that Google executes scripts (even relatively complex ones). They are doing so in order to crawl sites with JS-driven navigation, that don’t provide plain html links to their pages. To my best knowledge, this content doesn’t get indexed, only the links are being followed. Since I don’t work for Google, this may or may not be true; if you do research on this matter that shows otherwise, please tell.
    – ayanami
    Jan 24, 2012 at 0:30
2

I actually wrote a small app to include a github gist along with its actual content in NOSCRIPT tags. Not sure if Google will pick it up or not though.

http://seo-friendly-gist.heroku.com/ just paste in the gist ID and it will return the code to embed.

1
  • Hey, great idea! After some researh, I finally choose for traditionnel embedded code with google prettify, but still nice example of what Heroku is able todo ;) One day, I'll give it try! Thanks!
    – iammichiel
    Dec 23, 2011 at 17:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.