Forum Moderators: open

Message Too Old, No Replies

Google and Javascripts

Java ignored by google?

         

tinboye22

6:08 pm on Mar 1, 2003 (gmt 0)

10+ Year Member



I was just wondering about something. Our sites use banner rotation scripts which is about 25 lines of code per script. and this is ssi into the pages from a root location on the server. now if you look at the raw source code the 25 lines of java code will appear. Does this hurt our google rank? Should we use external java files instead?
Also I was reading over some of the topics about how many of a certain PR's you need to raise your own.
Are those external links linking to your site or are those internal/external in general?

I have seen a few sites with a pr5, which are setup the sameway as ours and ours is only a pr3. I was just wondering why this could be.

thanks

korkus2000

6:12 pm on Mar 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you talking about javascript or java. They are 2 very different things.

You raise your PR be getting quality external links to yours.
here are some threads to help:
[webmasterworld.com...]
[webmasterworld.com...]

tinboye22

6:20 pm on Mar 1, 2003 (gmt 0)

10+ Year Member



javascripts like <script>code</script>

korkus2000

6:26 pm on Mar 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Javascript should not effect Google at all. Google can't see it. You can use .js if you want to save the spiders from using the bandwidth. Up to you really. As long as you enclose it in a script tag you should have no worries.

daroz

6:40 pm on Mar 1, 2003 (gmt 0)

10+ Year Member



Another thing about externalizing the .js files (and css for that matter as well) is that most browsers will cache those files.

For the first page load it will take slightly (usually less then 1/4 of a sec if keepalives are used) longer to load the first page those file(s) are called from. After that your server won't need to resend that file for every page.

It'll cut down on page load time therafter (possibly significantly for dial-up) and bandwidth throughput.

I have a css file that's about 10K -- If I put that atop every HTML page it would add significantly to load time for dial-up users)

yetanotheruser

6:52 pm on Mar 1, 2003 (gmt 0)

10+ Year Member



I'm completely with you daroz.. You can save quite a bit in bandwidth/download time by externalising css/js (and the css will probably reduce the size of the html too.)

Do people think that google doesn't parse <script/>'s at all..

ATB :) J.

tinboye22

6:52 pm on Mar 1, 2003 (gmt 0)

10+ Year Member



I use css files for sites as well but nothing fancy, just for page fonts and colors etc so its small. the java scripts I use are called from ssi command so the javascripts are their own html files.

daroz

6:53 pm on Mar 1, 2003 (gmt 0)

10+ Year Member



I'm pretty sure that they do not parse SCIPT, but [b[]do[/b] parse NOSCRIPT tags.

ncw164x

7:50 pm on Mar 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I removed an external .js script 2 months ago which was on a lot of pages and googlebot has only just started to spider these pages. IMHO googlebot does not seem to like javascript either on the page or via a external script