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:52
Slow loading menu and response once loaded.
Poster: ztacari
Dated: Tuesday December 9 2003 - 16:53:31 GMT
I have a menu that is created using sql server and asp. The menu loads very slowly when I add the code to generate the departments. There are 587 departments and I wonder if the menu can't handle this amount of 3rd level hierarchy. I really like the menu system and have found it fairly easy to work with. I would appreciated any help in speeding it up.
You can check up my mock up site at damar worldwide mockup. The links are not yet operational on this page so please don't try them.
Thanks for any help!
Cari
Poster: kevin3442
Dated: Monday December 15 2003 - 21:00:43 GMT
Hi Cari,
At least part of the slow response may be due to the release you're using. You are currently using RC19. Back then, all of the menus were built at load time... lots of menus = longer load time. With recent releases (can't recall exactly which one), the approach was changed so that each menu is built at run time, when it is needed. So, if you update to the current release, I would think that your page will load faster. Since the current release, RC30, is 11 past what you are using now, you should not be surprised if you have to make some other minor changes to your menu code to get it to behave the way you want. But if you have trouble, you'll find help here.
Hope that helps,
Kevin
Similar problem
Poster: jlevinsky
Dated: Wednesday February 18 2004 - 14:57:46 GMT
I'm having a similar problem with submenus with large number of items.
I eliminated all overfilters and outfilters on these menus, but still have two long delays that occur:
(1) When the page loads. I create 27 submenus, with a total of about 4,700 items between them. This takes over 30 seconds on a reasonably fast machine. I have cached the text I put into the submenus, and verified that downloading that text isn't the cause of the delay. By the way, I think the delay occurs during drawmenus() and not in the repeated calls to aI().
(2) The first time a submenu with a lot of items is viewed. It took 24 seconds for the "S" menu in the example referenced below.
After that, things work great. When you revisit the "S" menu, it comes up instantly.
SO .. I'm wondering if there are any suggestions for how to overcome the two big delays. For example, are there some options that cause an n-squared process when building/originally rendering the menus that I can turn off?
The sample at [url]68.165.67.114/menuslow.htm[/url] has about 400 "S" items on the menu but 10 or fewer for other letters. This decreases the page load delay (item 1 above) but aptly demonstrates the first-time-viewed delay (item 2 above). If the URL doesn't work for you, please contact me and I'll update it for you.
Thanks.
Poster: Andy
Dated: Wednesday February 18 2004 - 15:11:05 GMT
Upgrading your menu code files to the latest version 5.02 will definately help.
Please let me know how much of an improvement the new version gives over the version you are using (RC28).
Cheers
Andy
Menu takes at least 6 seconds to load. **Update.
Poster: ztacari
Dated: Wednesday February 18 2004 - 20:02:16 GMT
I have upgraded to the latest version of the milonic menu and am still having trouble with the menu taking a long time to load. Once it is loaded it does move much quicker, but of course every time you move to a new page the menu takes forever to load again.
site specs: Asp, sql server
The menu pulls the categories, subcategories, and departments from the sql server database.
Is there anyway to cache the menu to at least speed up the subsequent pages?
Thanks for your help,
Cari
http://www.damarww.com
http://www.lightbulbdepot.com
Poster: Andy
Dated: Thursday February 19 2004 - 10:35:26 GMT
The sample at http://68.165.67.114/menuslow.htm is still Version 5.0 Release Candidate 28.0.
The only way to cache the menu is to put the data inside a .js file. This fil will be cached locally.
Cheers
Andy
Some speed up, but not enough
Poster: jlevinsky
Dated: Thursday March 4 2004 - 16:42:56 GMT
I upgraded to the latest version (just now), and things are definitely faster, but not fast enough. The load-time processing for the example (now at http://68.164.85.33/menuslow.htm) takes about 73 seconds and then there's about a 30 second delay to bring up one of the menus (I rigged it up to be the one with the "s" words) for the first time. After that, the menu comes up instantly.
Alas, with delays like these, I really do hope there's some trick to speeding things up.
Thanks