A Second, Smaller Version?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
martinh44
Beginner
Beginner
Posts: 1
Joined: Sat Jul 26, 2003 4:48 am

A Second, Smaller Version?

Post by martinh44 »

I would like to see a second version of the menu with a smaller file size. The current menu is great for users with a high speed connection. 56k users, on the other hand, must wait a relatively long time (initially) for the menu to download. I don't know if it is possible to make it smaller, but maybe taking out features like animation could reduce the size. Or, if a lot of the code was devoted to cross browser compatibility, it could be split up into a single file for each browser with an initial file detecting the browser and loading the relevant file. Which brings up the question that may make my question irrelevant: how many kilobytes is version 5?
thanks,
Martin
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Version 5 does have the functionality! If you notice, when you use the menu you only have to reference two files in your page. The milonic_src file, which contains critical menu functions and those used to parse up your menu data file (so everybody needs this one) and then the file containing the menu data itself. Inside of milonic_src, there is a test to detect browser and then it imports the correct javascript file based on browser. The installation of the menu for the server has mmenuDOM and mmenuNS4, which are the DOM (document object model) version for IE, and the NS version for NS4. WHen someone sees the menu, its only downloading the correct mmenu file that their browser can use. And the total file sizes are:
  • milonic_src : ~8KB
    mmenudom: ~24KB
    mmenuns4 : ~19KB
    your menu data file: ~?? (since you determine how big your menu is)
So the approx total is 51KB, but remember the user only downloads either mmenudom OR mmenuns4, not both.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

and that Java file compressor will also help in reducing the size of your data file.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

The aboutus section of the site also mentions the next incarnation of the menu being the version that the Lite version of this menu will be based upon. Then you will definetly get more bang for your byte! :)
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply