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:
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?
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.
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.
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
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.