Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.