The YUI Menu seems to load slow. At least on my site, is one of the last elements of the page to render. I've tried running the YUI modules in both local (YUI code on my server) and remote (accessing YUI code via Yahoo API) - in both cases, the menu continues to load slow. I want to confirm first of all... are any other users experiencing this issue? Also... does any have any suggestions for increasing the speed of the menu?

btw... I am on Drupal 5.7 and using the blueprint theme.

Comments

bakyildiz’s picture

Actually i do not know how slow is your site. But in general if you are using the markup type menu and if your menu has lots of menu items this can happens sometimes. Try to use script type menu and consume the yui from remote.

mpg’s picture

Title: YUI Menu loads slow » YUI Menu loads verrrrrrrrrrrry slow

I have had the same issue since i got the the menu to work as a top nav. What occures when a page loads is a long stall where my link items are displayed in a virtical list of text links, while the rest of the page loads, then after a while the links dissapear and the top nav appears...this is really frustrating...I am loading the yui from local because i thought it would be the most effecient, and i am using "submenus built from markup" rather than "built from javascript"

have a look to see what i am talking about:

http://www.montereypeninsulagolf.com/golf+courses

It would be great if someone has a solution for this! thanks

mpg’s picture

Title: YUI Menu loads verrrrrrrrrrrry slow » YUI Menu loads very slow
Priority: Normal » Critical

I just tryed the "submenus built from javascript" option and am getting the same result....?

I am thinking that it would be faster to consume the YUI form local rather than remote, is this correct? if not why?

thanks

bakyildiz’s picture

Status: Active » Closed (works as designed)

Once the required css & js files are called they are cached by browser. After caching it is not so importand whether the css or js files are consumed from local or remote server. Bu if you have enabled your drupal perfomance options for css file may be that can be faster. Not sure.

One point is, the menu is activated after the whole html page is loaded. If your page is big and takes long time to load, this will delay the menu load as well.

mpg’s picture

This is strange that the menu is loaded AFTER the page is loaded. This does not make since to me, I would like the menu to load in order as standard design has always dictated. i have google maps on some of my pages and they take a little while to load. i was thinking of looking into making them load last so the yui menu loads correctly and does not stall...any thoughts?

bakyildiz’s picture

YUI scripts are activated after the page load. This is by yahoo and we can not change this. I do not know what we can do to improve this appoach.

vkr11’s picture

Same issue. Looking for a solution.

-Victor
Better way to search Drupal.org - http://drupalsearch.org

finalcountdown’s picture

hello,

try this open a file call menu-min.js under js folder, js\ build \menu

in menu-min.js search for first number 250 and change it to 50. Done!

Information at http://developer.yahoo.com/yui/menu/#showdelayconfig

Hope this helps

Luca C’s picture

Same problem here
I can't find "250"
Alternativey I found
""SUBMENU_HIDE_DELAY":{key:"submenuhidedelay",value:150"
Is it this one?
I've tryed to changed to 50 but nothing change though

williams45’s picture

Status: Closed (works as designed) » Needs review

I am also having this problem where the page loads slow and therefore the top navigation links appear vertically in text form until the page fully loads. Once the page is fully loaded it returns to the proper formatting. Any suggestions to eliminate this issue?

hejeva’s picture

Experiencing same thing that menu appears in text form vertically on side. This only happens on pages where there is also a flowplayer swf video on the same page. In addition, if I have firebug on, the menu loads fine. Guessing it is loading/timing issue. Anyone find any solutions?

hejeva’s picture

Solved my issue. Determined there was a bug in swftools in the swftools_flowplayer with a console log message. http://drupal.org/node/830618 which caused the YUI menu not to load.

marcelovani’s picture

Inside the blueprint theme, on the template.php file there is a call to a function that clears the theme registry on every load
I had problems with long delays on the Production website until I figured out we forgot to comment this line

<?php
// $Id: template.php,v 1.15.2.1.2.23 2010/03/22 14:31:28 designerbrent Exp $
/**
* Uncomment the following line during development to automatically
* flush the theme cache when you load the page. That way it will
* always look for new tpl files.
*/
drupal_flush_all_caches();

mindhunter75’s picture

Same issue here. Looking for a solution also....

On page load links are showing vertically and after page load the YUI menu showing normally.

Looks very bad.

Hope somebody can fix this!