Sometimes the second level of the primary menu flashes and then goes away when you visit a site for the first time that is running a Fusion based theme. This is do the Javascript loading for the Superfish menu and as everything else on the site loads it takes a second or two to get the Primary menu script and hide the second level menu items so they show sometimes for a second.

I have a fix for this that targets the users with Javascript enabled in their browser and is a CSS only fix.

html.js .primary-menu-inner ul li ul {
  display: none;
}

So this code would go in Fusion's main CSS file and hide the second level Primary menu items immediately if the user has Javascript enabled. Since the display is controlled by Javascript through the Superfish menu it changes the styles applied to the menu items through inline styles and to "display: block" when hovered upon. And since inline styles override CSS styles, the second level dropdown menu displays as intended.

The nice part about this is we are targeting only users with Javascript enabled and not all users. So if you have Javascript disabled you would still see the Primary menu as normal.

This issue is related to another one: http://drupal.org/node/765850

Comments

Poieo’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Closing as won't fix since the D6 version is not getting any new development.