Dropdown menu to show up faster

Posted in: Newspaper
Post count: 112

Hi tagdiv,

Is there way for the dropdown menu to show up faster?
I would love to see it show up instantly when mouse_over.

Thanks.

/Twolle

Post count: 22421

Hi,
The delay of the menu is added in javascript here: http://screencast.com/t/N5kYxS5hU
Thank you!

Post count: 112

Hi Bogdan,

I have tried to remove the delay-line, and also change it to 0, but the dropdownmenu is still very slow or maybe I should write “the same”.

Can I do anything about the speed?

Or do you have another solution?

Thanks.

/Twolle

Post count: 22421

Hi,
Try to increase this number to a big one to see if it affects the speed at all. Try like 3000000. Try to change the delay as well. If nothing happens, then it means you use speedbooster. This means that the theme will use the minified version of the js and finding the delay there will not be as easy .
Thank you!

Post count: 112

Now it worked 🙂

Changing it to 3000000 and then back to 1 for both delay and speed was a success.

/* ----------------------------------------------------------------------------
On load
*/

// header menu
jQuery('#td-header-menu .sf-menu').supersubs({
minWidth: 10, // minimum width of sub-menus in em units
maxWidth: 40, // maximum width of sub-menus in em units
extraWidth: 1 // extra width can ensure lines don't sometimes turn over
});

if (tdDetect.isTouchDevice) {
//touch
jQuery('#td-header-menu .sf-menu').superfish({
speed:'fast',
delay;1,
useClick:true
});

} else {

//not touch
jQuery('#td-header-menu .sf-menu').superfish({
speed:1,
delay:1,
useClick:false
});
}
})();

Thanks Bogdan 😉

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.