Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Menu is too much slow..with more than 200+ menu item.

Home Forums Older releases 0.9.x Menu is too much slow..with more than 200+ menu item.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2736
    prakash_arsenal
    Participant

    Hello,

    I have 200+ submenu under stories menu and it will take too much time to display and hide submenu’s.

    You can review it on below URL :

    http://www.arsenaltech.com/~projects/health/

    I have also tried latest version but same issue with it.

    Let me know if you can suggested me something for fix this issue. 🙂

    Many Thanks…
    Prakash

    #2755
    admin
    Keymaster

    Hi and sorry for this long delay! I was on a vacation the past couple of weeks and wasn’t able to reply earlier.

    In general, the script should handle large lists just fine – it’s designed so that the performance depends as little as possible on the size of the unordered list. Here is a quick demo:

    http://jsfiddle.net/4gscz846/1/

    Here is another thread that covers performance with large lists:

    http://www.smartmenus.org/forums/topic/very-large-menu/

    That being said, I noticed you are now not using the SmartMenus plugin on the demo page you posted so, unfortunately, I can’t really check it and possibly suggest any optimizations in your specific case.

    Please let me know if you still need any input.

    #2756
    prakash_arsenal
    Participant

    Thanks for your reply !!

    You can find smart menu on below URL
    http://www.therealtruthabouthealth.com/

    Here i have same problem with speed.

    #2759
    admin
    Keymaster

    The biggest issue on your page is that it’s really very heavy. I mean you’ve used so many scripts/features that even a simple CSS hover effect has a noticeable lag on my MacBook Pro (not one of the most recent models but still a very capable machine). So my first suggestion would be to try to reduce the number of client-side scripts you use or at least try to use them more responsibly by paying attention to the performance hit of every “feature” you add. Because it’s not really just the menu that feels slow on your page.

    As for the SmartMenus plugin, one thing that I see is that you are using a modified version of the SmartMenus plugin (not the stock v0.9.7) where you have completely removed the showTimeout logic from the code. So I would suggest to replace it with the stock v0.9.7 and use the default showTimeout/hideTimeout options when initializing the script – i.e. replace this code:

    jQuery('#main-menu').smartmenus({
    	mainMenuSubOffsetX: 0,
    	mainMenuSubOffsetY: 0,
    	subMenusSubOffsetX: 1,
    	subMenusSubOffsetY: -8,
    	showTimeout: 0,
    	hideTimeout: 0
    });

    with this:

    jQuery('#main-menu').smartmenus({
    	mainMenuSubOffsetX: 0,
    	mainMenuSubOffsetY: 0,
    	subMenusSubOffsetX: 1,
    	subMenusSubOffsetY: -8
    })

    On theory this sounds as if you would add more lag before showing the sub menus but in reality it makes the script more responsive to cursor movement since the code that shows/hides the sub menus is not triggered immediately. Additionally, you may try setting the keepInViewport: false option which should reduce the calculations the script needs to do before displaying the sub menus but, of course, this is in case you can live without this feature.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘0.9.x’ is closed to new topics and replies.