Forum Moderators: open

Message Too Old, No Replies

Can using Javascript harm lower my google rankings?

         

matuloo

9:04 pm on Apr 15, 2003 (gmt 0)

10+ Year Member



Hello,

if I understand it correctly, google doesnt index the javascript part of a site, so I know that any potential keywords within the script body will not get crawled, but can the use of javascript harm my site in any way, in terms of PR or google rankings?

Philosopher

9:09 pm on Apr 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Javascript in and of itself...no.

That being said, it is generally best to place javascript in an external file instead of having it in the actual page itself, because what can happen is that, by using javascript, you end up pushing the content that the engines can read further down the page. This can have the effect of reducing it's relevance in the eyes of the engines.

So, to answer your question, directly...no...but it can indirectly effect a pages ranking by pushing your indexable content further down the page.

matuloo

9:35 pm on Apr 15, 2003 (gmt 0)

10+ Year Member



I will be using just one simple line so that shouldnt harm my site in case what you are saying is true.

Mohamed_E

9:59 pm on Apr 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That being said, it is generally best to place javascript in an external file instead of having it in the actual page itself, because what can happen is that, by using javascript, you end up pushing the content that the engines can read further down the page. This can have the effect of reducing it's relevance in the eyes of the engines.

Not sure that I agree.

On general principles, I would assume that the search engines all begin by parsing their input (just like a compiler would). Comments are almost certainly discarded at this stage, and I would assume that constructs that the SE ignores, like SCRIPT, are also discarded.

If my assumptions are correct the script should not push the HTML down in the actual text that the analysis module of the SE sees.

I make no claim to knowing how SEs really work, just seems to me to be the way I would design it.

This issue comes up quite often (most commonly about comments), would love to hear what others think.