clasione
07-08-2004, 07:58 PM
There was a time on the net where hiding javascript in external files was a big discussion in the SEO world. The idea was to elliminate as much javascript in your HTML to avoid large file sizes that are cluttered up with javascript (wasting valuable space in HTML) Especially when most of the javascript was at or near the top of the document... They say that having your important info and keywords as close to the top of the page as possible is best, and these javascripts would sometimes take up too much valuable space.
So anyways - people started hiding it in an external file and calling the script with one line of code like:
<script src="externalfile.txt"></script>
The line of code could call a 300 line javascript to action while only taking up one line in the HTML document.... We'll all sounded well - I even did it myself, UNTIL RECENTLY.... The discussion has also came up about seo flags and what types of trends se's might be able to identify..... I would imagine that this is one of them.... I don't really see any other legitamit reason to hide a javascript in an external file other then saving document space.... IE: SEO FLAG.....
I have no proof of this - but I think it's worth the thought....
So anyways - people started hiding it in an external file and calling the script with one line of code like:
<script src="externalfile.txt"></script>
The line of code could call a 300 line javascript to action while only taking up one line in the HTML document.... We'll all sounded well - I even did it myself, UNTIL RECENTLY.... The discussion has also came up about seo flags and what types of trends se's might be able to identify..... I would imagine that this is one of them.... I don't really see any other legitamit reason to hide a javascript in an external file other then saving document space.... IE: SEO FLAG.....
I have no proof of this - but I think it's worth the thought....