Mobile app version of vmapp.org
Login or Join
Jennifer507

: Will Google/Bing crawl my website both with and without Javascript, or with only? We have put a lot of work into our website, to try and make it as SEO-friendly as possible, while also providing

@Jennifer507

Posted in: #Javascript #Seo

We have put a lot of work into our website, to try and make it as SEO-friendly as possible, while also providing a great UX.

If you visit with JavaScript enabled, you get a slick AngularJS SPA, which provides a great UX.

If you visit without JS enabled, you get a fallback, entirely server generated version of the website. The content is identical (it's all fed from a RESTful API), the appearance is identical and the URL structure is identical. The JS-free version is just not as nice to use, and is missing a lot of features present in the Angular version (progressive enhancement etc).

One of the things I do on the JS-free version is have a link to an alphabetized index of all of the content on the website. I don't do this in the Angular app, because we have search functionality instead. This link gets overwritten when the JavaScript kicks in (the div content gets replaced by the JavaScript).

My worry is that Googlebot/Bingbot will hit my website, helpfully execute JavaScript, the link to the index disappears and then basically nothing gets crawled.

One option is to not deliver the JavaScript script tags to anything identifying as a bot, based on the user agent, but I worry about being ranked worse as a result.

And yes, I know about Sitemaps, but I like the idea of the entire website being crawlable from the homepage. Screaming Frog finds every single link perfectly, and then when I navigate to any one URL the Angular app kicks in and we get a great UX.

So will Google/Bing browse my website with and without JS, or do they always execute JS now? Also, any other advice generally?

I worry that we may be actually penalized by Google for going out of our way to be SEO friendly!

I can link to the website if you ask, but trying to keep this as general as possible.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Jennifer507

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

To answer your specific questions based on the information you have provided:


Google's crawlers do read Javascript (and exceptionally well at
that). Also, Google and Bing both support HTML5 pushState. If
Screaming Frog is able to crawl your website perfectly and find the
right links, chances are most search engines including Google will
be able to crawl your site (Screaming Frog follows Google's AJAX
Crawling Scheme).
Be rest assured, you are not going out of your way
to be SEO friendly and hence, you will NOT be penalized by Google.
Infact, having a JS and non-JS version is user friendly and so
there's nothing wrong with it.


You must read this post on search engines and AngularJS apps on StackOverflow as well the following articles on Google's and Bing's Webmaster Guidelines:


Making AJAX applications crawlable
Guide to AJAX crawling for webmasters and developers
Search Engine Optimization Best Practices for AJAX URLs

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme