js subnav help
js subnav help
Out of context: Reply #1
- Started
- Last post
- 1 Response
- joyride0
the delay is because it is sending a request to get the data to populate the subnav. It s so the subnav does not render a blank area, then suddenly show up.
if (isOpen == true || isSub == true) {
openMenu(menuData);
} else {
menu_timer1 = setTimeout("openMenu(menuData)", 500);
}If you have static data then you can just remove the setTimeout or set it to happen faster...