Category: SEO

Javascript Bad For Search Engines

If you are trying to improve search engine traffic, one way to help make your site bot friendly is to remove javascript from your pages. If you do not want to remove your javascript navigation completely, a nice compromise is to actually externalize javascript. You can go ahead and place your scripts in a separate directory, and then use the robots.txt file to disallow search engines from indexing this directory.

<script language="JavaScript" src="\myscriptsdirectory\external.js" type="text/javascript"></script>

This will cut down on the size of your overall web page, and let your content actually dominate the percentage of the text.

Filed under: SEOTagged with: , , , ,