0

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.

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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