Forum Moderators: open

Message Too Old, No Replies

google reading my javascript?

is my site not showing casuse i use javascript

         

Homersim

5:19 pm on Mar 15, 2004 (gmt 0)

10+ Year Member



Hi,

My site was listed fine in google. couple days ago all listings just got taken away. I use javascript for show in my website. I read that to stop people who abuse javascript google gives terrible ranking to people who use javascript.

Is this true? is there anything i can do?

thanks,
jeff

hutcheson

5:13 am on Mar 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, it's not true.

However, Google cannot follow many Javascript links, so your site navigation may be impervious to the spider.

What can you do?

Turn off Javascript on your browser, and make sure that you can traverse your entire website.

kaled

2:52 pm on Mar 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Google even indexes my javascript files. One gets several hits a day from users. I'd call that a bug - what would other people call it?

Kaled.

GoogleGuy

5:27 pm on Mar 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



kaled, I'd call that an opportunity. ;)

Homersim, we don't penalize for JavaScript, but we might not being able to crawl a site as deeply. Some things to consider:
- you might want to simplify your JavaScript. Google can often extract urls from JavaScript, but I can believe that doing utterly weird stuff might mess things up.
- you might want to remove the JavaScript. Most search engine spiders can't handle JavaScript, so for optimal crawling you might want to convert the links to static text links.
- you might want to add easier links to crawl. So you could keep the JavaScript links, but add new text links, or add a site map or something that allows spiders to reach pages without going through JavaScript.

If I had to guess, I'd say that it's a good idea to tackle the JavaScript and give the spiders some help, but that might not be the main issue. If you look at your logs, was the site up the whole time? If you see a big gap with no visitors, the site might have been down for a while?

P.S. No penalties on the site in your profile, so that's not it, either.

kaled

6:45 pm on Mar 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey, GoogleGuy, if you know of a way I can show a profit on my js files I'm all ears. Since a user hit on a js file displays as pure text, if they want it, they've already got it.

Personally, I doubt that searchers are looking for js files. I would like to stop them being indexed but the robots.txt standard doesn't seem to allow me to do so. I would like to disallow *.jscr but from reading the standards it doesn't look like I can do so. I'm open to suggestions but I like to keep my js files near where they are needed rather than in separate directories.

Kaled.

ThomasTA

6:26 pm on Mar 19, 2004 (gmt 0)



GoogleGuy, you mention the value of a sitemap to Google spiders if you use JavaScript. I appreciate the suggestion. I've also been advised by a consultant to put <noscript> tags around my JS, and then the spider will continue spidering, even with the JS there. Is that true, do you agree? Thanks for any feedback.