Forum Moderators: open
document.write(''
+ ''
+ '<a href="/
and I call it where the text should appear with <script type="text/javascript" src="/images/menu.js"> </script>
thanks in advance,
I don't know if there would be any change in page load, if the JS files were included in the <head> section, and a function called where the JS files are currently included?
A side issue... bare in mind that a menu written entirely with JS (apart from being unavailable to those without JS) will not be spidered by the search engines.
And, yes, I am doing it so google does not index it. This is for the product pages so I want to avoid any dupe issues. The normal menu is in on "enough" pages already.
Thanks again. I think the speed of my connection was it...but will check again.
Now that my connection is fast, I see not sign of it at all.
Thanks to all
why would a .js request be any worst than a ssi include?
A .js request is another http request from client to server. A SSI include all happens on the server and comes down as 1 (bigger) response. I wouldn't have said a couple of .js requests would/should be any worse? And the JS file caches nicely, which is a bonus.
However, ultraniblet also mentions compressing (gzip) the file (server-side) before sending which can greatly reduce file size / download time / bandwidth.
[webmasterworld.com...]