Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from stackoverflow.com Dec 21 '11 at 14:02

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

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

share|improve this answer
Okay. Thanks for the answer. Thought Google among others understood basic Javascript commands. And document.write being one of these. Thanks anyway. – Zenklys Dec 19 '11 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. – Zenklys Jan 23 '12 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 '12 at 0:30

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.

share|improve this answer
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! – Zenklys Dec 23 '11 at 17:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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