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've noticed in Google's results page that my website's listing details (i.e. bellow the link) displays content that is only generated during the page onload function.

This surprised me as I thought Google does not index JavaScript generated content. Later I came across this post showing a way to create <title> and meta description tags using AngularJS directives (which are only interpreted during onload)! So does this actually work? I would also appreciate some reference if it does and Google indeed indexes the page after running its onload.

share|improve this question

Google has been known to crawl and handle some JavaScript for some time now so this isn't really much of a surprise. Especially when you consider that Google is the author of Angularjs. So basically nothing unusual here.

share|improve this answer

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.