YUI Menu loads very slow

jlee - June 30, 2008 - 14:31
Project:YUI Menu
Version:5.x-2.4
Component:User interface
Category:support request
Priority:critical
Assigned:Unassigned
Status:by design
Description

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.

#1

drupalhizmetleri - July 3, 2008 - 10:03

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.

#2

mpg - August 7, 2008 - 23:33
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

#3

mpg - August 7, 2008 - 23:44
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

#4

drupalhizmetleri - August 12, 2008 - 10:07
Status:active» by design

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.

#5

mpg - August 31, 2008 - 06:51

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?

#6

drupalhizmetleri - August 31, 2008 - 10:03

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.

#7

vkr11 - April 4, 2009 - 06:55

Same issue. Looking for a solution.

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

 
 

Drupal is a registered trademark of Dries Buytaert.