Performance: DHTML Menu slow on big menu hierarchies
Winstonralph - December 4, 2008 - 11:10
| Project: | DHTML Menu |
| Version: | 6.x-3.x-dev |
| Component: | Javascript code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I have a book navigation on my site which holds two books. My first book is quite large and has a depth of about five children, the second could grow to be the same, but has quite a flat structure so far. In total there are about 700 pages inside my first book and only about 20 in my second.
Help
child 1
child 2
child 3
child 4
child 5
child 1.1
child 2.1 etc....
Help 2
child 1 etc....I only have the book navigation on the left sidebar and nothing else. I click on the top level help, IE takes a second or two to unfold the menu and when it does it issues a "Stop running this script? A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive.' error. The menu works beautifully in Firefox2/3 + Chrome.

#1
Thanks for reporting this. I have never tested this module with any menu remotely as large as the one you have there.
Unfortunately there probably is not much I can do since I use high-level jQuery, and can't speed up the low-level JS code. But I could try a few tweaks.
At least it's nice to see that the good browsers can handle it with ease.
#2
I have the same issue on IE6.
#3
I'm experiencing this too and wondering if there is another dynamic menuing module that would handle a larger structure better???
#4
Hi,
For very large menus, the Active Menu module - part of the JS Tools module set http://drupal.org/project/jstools - might be worth considering, as it uses AJAX to load the menu branches as they're needed. The drawback is that, on smaller menus, the loading delay makes things feel slower than DHTML Menu which has the whole menu tree available immediately. I guess the ideal would be a combination of the two, with say the first couple of levels preloaded, and other submenus retrieved with AJAX as the user drills down - but that's not going to be simple to code!
#5
I have same trouble on IE6 and IE7.(FireFox works fine.)
My book tree is very deep and has many nodes, so IE shows warning dialog like "too many javascripts, will you stop show page?".
Then I tried nice menu and Jquerymenu. They works fine but they are only for "menu" so i couldn't choose "book navigation".
I think JS Tools is enable for "navigation" or "menu" too..