milonic_data.js code placed directly on the page with menu?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
rudy
Mega User
Mega User
Posts: 161
Joined: Thu Jan 15, 2004 11:39 pm
Location: Scottsdale, Arizona
Contact:

milonic_data.js code placed directly on the page with menu?

Post by rudy »

I have been looking at other users Milonic menu pages and have noticed a couple of people who instead of uploading the milonic_data.js file separately to their server, they are putting the data that would normally be in the milonic_data.js file, right on the page where the small script code is on their page.

Do you think this increases the load time as the milonic_data.js file does not have to be retreived from the server because it is already on the page?

Here is an example link of one of these pages:

http://morsbank.inet-designer.dk/
Rudy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

One way or another it has to be retrieved from the server - whether it's in a separate file or on the main page. Either way it's too small to worry about. Personally I don't like splitting up the code.
John
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

Some people are generating the menu dynamic (PHP, ASP, ColdFusion). This is a reason why the menu code is stored in the html-file instead of the external JS-file.

Your sample from denmark is a bad example concering the implementation. The menu code should always be at the end of the file, not at the begining.
Google will not index this site in good way. Google interprets js as text, but it will classify this "text" as not important. A "classic" navigation and or a NoScript area is missing also. Bad luck for SE's...

A good example might by http://www.hr-swiss.ch (Still running with the old version of the menu)
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
Post Reply