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:48

Total Script Size


Poster: jashan
Dated: Wednesday April 6 2005 - 12:24:35 BST

Hi,

I am looking to create a list-based menu and have been testing out this script. I am trying to get an idea as to the total size of the script and I found the following in the FAQ:

Quote:
The normal size of all menu files combined, range from between 20 to 30Kb but will depend on the complexity of your menu


When I add up the sizes of the javascript files mmenudom.js, milonic_src.js, and menu_data.js I get 43Kb. Am I not calculating the number correctly?

If I am creating list-based menus, would I end up using listmenus.js instead of menu_data.js?

Thanks.

Jeff


Poster: Ruth
Dated: Wednesday April 6 2005 - 13:43:58 BST

jashan wrote:
When I add up the sizes of the javascript files mmenudom.js, milonic_src.js, and menu_data.js I get 43Kb. Am I not calculating the number correctly?
No, you are calculating correctly most likely. The menu keeps evolving as new capabilities are added to browsers, since the menu must keep up with them. The two menu program files are 36kb, [28 kb if its the mmenuns4.js file that is being called with the milonic_src file, that would be on the netscape 4x browsers] the rest is your menu_data file.

Ruth


Poster: jashan
Dated: Wednesday April 6 2005 - 16:36:24 BST

Thanks for your response Ruth.

Do you know if I am creating list-based menus that I would use listmenus.js (from the example) instead menu_data.js? It looks like the total scripts would then be around 38Kb total.

The list-based menu I would like to create would be vertical and would have just one level. I would like the menu script to end up being as small as possible, so the load time for a page does not increase too much.

Jeff


Poster: Ruth
Dated: Wednesday April 6 2005 - 18:26:49 BST

Hi Jeff,
Well, I'm low on the learning curve here since I hadn't looked at the list based menu. I think you have two options with this list based menu. You can create a list_style.js file, that would be the menu_data.js file without any of the menus in it, only the style you wanted. Then you do the unordered list in html on the page, and you call the program files and the list_style.js file you created, and the listmenu.js file.
I think that this is designed so you can use it with a regular menu, providing a list based menu in addition to the regular one, but I don't see a problem with just doing a list menu. Again, I don't know a lot about it because I just looked at it. I opened the menu_data.js file, cut out all the menus just leaving the style in it and saved it as list_style.js, loaded that, the listmenu.js file, and the base files, leaving out the menu_data.js file and it worked in IE5.5, Netscape7, Firefox 1.0.2

Hope that helps.

Ruth


Poster: John
Dated: Wednesday April 6 2005 - 19:43:49 BST

Jeff, the menu code files are highly compressed. True, that doesn't change their size, but it does help them load very quickly. I don't think you'll see a problem.


Poster: jashan
Dated: Wednesday April 6 2005 - 21:31:36 BST

Ruth and John,

Thank you for your help. I'm going to go ahead and see if I can get my list based menu to work.

Jeff