Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:21

[Performance] Lots of Menus in One Page


Poster: blueEinstein1
Dated: Monday August 11 2003 - 21:38:30 BST

In my ecommerce grocery site, I have a bunch of items in my 'listings' page. With each item, I'm gonna put in a menu.

Code:
Item 1<script src="menu.jsp?item=1">
Item 2<script src="menu.jsp?item=2">
Item 3<script src="menu.jsp?item=3">
...
Item n<script src="menu.jsp?item=n">


Inside menu.jsp, it would create a unique menu for each item. i.e.

Code:
with (milonic=new menuname("Menu<%= item %>"))
{
    ...
    ...
    aI("text=Add to Cart;url=javascript:fnAdd()");
    aI("text=Remove from Cart;url=javascript:fnRemove()");
}


The issue that I have is, when I load this in a browser, and I have like 50 or 100 items. The performance or wait time is really a concern.

Is there a work around for this?

Thanks; appreciate any inputs.


Poster: Hergio
Dated: Tuesday August 12 2003 - 13:14:14 BST

Wow thats an interesting thing you're doing. Neat way to implement the menu. umm, I was thinking about this and because you have 50 to 100 menus, regarding the rendering/load time of the menus, I think Andy is the only one who can tell you about that. But I think, from the users perspective you can make it appear as if the page is quicker. I am assuming you have some sort of vertical menu down the side of your page with all the itmes and each one can be added/dropped/other. Well instead of the menu, make it a table with the items being text and have the text have a mouseover event that shows its corresponding menu. That way the main table (which was a menu) is just text that hopefully will render quicker. And the menu can load in the background, because chances are, a user isn't going to click on one of the hyperlinks right away. Just an idea, maybe you can use it.


Poster: blueEinstein1
Dated: Thursday August 21 2003 - 18:30:01 BST

Well, this would be my last alternative if the performance cannot be solved.

So, is it safe to assume that performance is hard to deal with? And should just find other ways?


Poster: John
Dated: Thursday August 21 2003 - 20:07:21 BST

Actually performance is much less an issue than it used to be. v5 is 3-5 times faster than the old system.

However, I think even you will agree you're pushing the envelope a bit with that number of menus.

Stay tuned for an answer from Andy on this one.