Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:39

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


Poster: rudy
Dated: Friday March 5 2004 - 23:24:54 GMT

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/


Poster: John
Dated: Saturday March 6 2004 - 0:17:44 GMT

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.


Poster: Martin
Dated: Saturday March 6 2004 - 1:25:34 GMT

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)