Seo Forum

Search Engine Optimization => SEO Basics => Topic started by: lamnzxzfd on 12-01-2011, 23:11:40

Title: should we avoid using Javascript for seo purpose?
Post by: lamnzxzfd on 12-01-2011, 23:11:40
Javascript is a complex language which needs lot of browser understandable coding to make it friendly for browsers, Search engine crawlers are not too sophisticated browsers, they dont have high capabilities like Internet explorer or firefox in understanding Javascript,so does this mean that we should avoid using Javascript for seo purpose? Your thoughts or tips?

Thanks for any help!
Title: Re: should we avoid using Javascript for seo purpose?
Post by: C.Rebecca on 12-03-2011, 00:50:56
Yes, It would be better if you could avoid using Javascripts for coding of your website.

Search engine bots cannot read files in Javascript code and thus it will not rank your those files for rankings.
Title: Re: should we avoid using Javascript for seo purpose?
Post by: jillsmith on 03-21-2012, 06:12:59
Yes avoid javascript, jquery and Flash as much as you can.
Title: Re: should we avoid using Javascript for seo purpose?
Post by: globalseo on 03-27-2012, 04:17:50
Use of JavaScript navigation menus, the complexity of the JavaScript can actually stop search engine spiders from reading your web pages. this may interrupt your SEO strategy and reduce the chances of your website getting high traffic and ranking among the top search results. So, we should avoid Javascript for seo purpose.
Title: Re: should we avoid using Javascript for seo purpose?
Post by: tanuja19 on 07-01-2012, 00:08:25
Yes , javascript is not good for seo purpose.
Title: Re: should we avoid using Javascript for seo purpose?
Post by: kormeysin on 07-01-2012, 19:16:23
It is always an issue that needs to be considered a lot, using JavaScript will depend on your overall online strategy, meaning, at times you will need to use javascript (like client side form validation) etc.
One needs to think along the lines as "what am I trying to achieve with this code?" can I use other methods? like cascading style sheet to achieve the same result?
Because, if the navigation structure isn't that complex, then one can achieve the same results as javascript menus (like drop down menus using style sheets etc) but, there may be times when this may not be the best way. Thus, depending on your website needs, using javascript may actually be better to communicate your message.
The question you put forth is a complex one.

Perhaps the simplest answer would be, try not to use javascript for navigation purposes if you can do so
Title: Re: should we avoid using Javascript for seo purpose?
Post by: Ravi Soni on 03-21-2016, 00:11:46
"Googlebot cannot access CSS and JS files on example.com" warning letters that Google sent out to seemingly every SEO and webmaster. This was a brand new alert from Google, although we have been hearing from the search engine about the need to ensure all resources are unblocked—including both JavaScript and CSS. So, we should avoid using Javascript for seo purpose.
Title: Re: should we avoid using Javascript for seo purpose?
Post by: duongnhutiep on 03-21-2016, 22:59:41
Use of JavaScript navigation menus, the complexity of the JavaScript can actually stop search engine spiders from reading your web pages. this may interrupt your SEO strategy and reduce the chances of your website getting high traffic and ranking among the top search results. So, we should avoid Javascript for seo purpose.
Title: Re: should we avoid using Javascript for seo purpose?
Post by: TomClarke on 08-24-2016, 03:30:30
We should pretty much assume  that any content which is only available by javascript will not be crawled by the search engines. Google at least claimsto be able to crawl some javascript  only content but is fairly tight lipped about what exactly they can crawl. Other search  engines probably don't crawl it and it's certainly the case that not all do. So assume it doesn't get crawled.
But that doesn't mean it's bad for SEO. If the contetn will contribute to oyur SEO, then it's bad for SEO. If the content is neutral to SEO, then it's neutral for SEO.  So the answer to your question really depends on the nature of your content. If the content is part of your SEO campaign, then stick with server-side HTML generation be it PHP or some other method. Otherwise the question of SEO has no bearing on the decision to use javascript or not. Accessibility would be another thing to take into account. Javascript only content is terrible for that.