javascript code in webpages
Many sites use javascript - a neccessity of today’s world.
But a lot of webdesigners simply add all the javascript code into each webpage. Now this is not such a bad thing it’s just that the search engines spiders want to see your text of your page so they can decide what to do with it when it comes to rankings.
Most spiders will strip out all of the html code in your site but why make it difficult for them?
What you need to do is simply add the js code into an external file and then reference it from your webpage - and here’s how to do it.
Generally you’ll have javascript code in your webpage as follows:
What you need to do is to take the code that is between the
tags and put it into a text editor. Save that file as something like file.js (remember the extension .js) and upload it via ftp to your website.
Then add the following to find that file and execute it:
So the only code you have is what you see above which makes your code extremely light.


