Forum Moderators: open
Especially if you have quite a lot of common functions used in several pages on your site, put these functions in a separate '.js' file. This will decrease download time for the user, save bandwith for your site, and make it easier to maintain the code. In rare cases, SEs have problems finding the begin/end of your JavaScript and therefore index the code or miss text & links. That won't occur with the JavaScript in an include file.
For now, the '.js' files are ignored. And even if that would change in the future, you can still change the robots.txt to prevent Google from spidering the JavaScript files.
True. But if you use an include - they are part of the html file and will be spidered.
I don't know how much of an impact - if at all - this will have. Just something to consider for the future. ;)
Dave
added found This [webmasterworld.com]