What is milonic_menu_code.js file?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
TheOpinionatedWebguy
Beginner
Beginner
Posts: 9
Joined: Sun Feb 10, 2008 3:04 pm

What is milonic_menu_code.js file?

Post by TheOpinionatedWebguy »

I'm Lee, and I run the web presence for the IEEE Computer Society. We're in the midst of a drastic rework of our entire set of sites and backend architecture. While we are a non-profit, I believe in paying for work, so I bought a professional license of the menus (my money, not the CS's) because for what you get, it is very inexpensive.

When I downloaded and unzipped the package, I see a file that I can't find any references to -- milonic_menu_code.js. It doesn't appear to be referenced in the html, and the menus appear to run fine without it.

Is this file needed as part of the installation? What does it do?

Thanks!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: What is milonic_menu_code.js file?

Post by Ruth »

Hi,

I vaguely remember a post someplace and I think it said that the file you mention is = to having the milonic_src and mmenudom.js files. I believe that the other files are still included in the download because users who have huge sites or a number of sites don't want to have to change the calls on all of them to just use the milonic_menu_code.js file, and users who still code for NN4+ couldn't use the one file since that call for the mmenuns4 is an if this do that :)

Ruth
TheOpinionatedWebguy
Beginner
Beginner
Posts: 9
Joined: Sun Feb 10, 2008 3:04 pm

Re: What is milonic_menu_code.js file?

Post by TheOpinionatedWebguy »

Wow - thanks for the very quick reply on a Sunday, no less!

I just tried modifying my test code and yes, it appears to work exactly how you stated it. One very nice thing is that it is a bit smaller overall than two files. Every little bit helps!

Putting all of the images and code including my complicated menus into a zip file to simulate gzip compression from the web server gives me 21,773 bytes for the two file method, and 20,856 bytes for the one file method -- about a 4% reduction -- *and* the invocation code is just a wee bit simpler. Very cool! We've got a particular page which gets a lot of direct traffic from Google, and we're hand-coding it to make it as tiny as possible for best speed so that our first impression is a good one.

I'm too not worried about the Netscape 4 people at this point. Over the last 30 days, out of 1,044,810 visits, 11 were from Netscape 4.x browsers.

Thanks, by the way, for your signature line. The summary PHP links have been extremely helpful to me.

Thanks again,
-lee-
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: What is milonic_menu_code.js file?

Post by Ruth »

You're very welcome. Yes, NN4 is probably not of great importance in most instances, but I think there are still some [overseas, I believe] where that is a much used browser, again, that is one of those, I remember reading it but don't remember in detail about what places they were talking.

Ruth
Post Reply