Drupal caching causes random breaking of Superfish menus

Created on 20 February 2012, almost 13 years ago
Updated 29 July 2023, over 1 year ago

In my recently launched site I turned off rebuilding of the theme cache with each page
load as recommended. Now after some period of time the cache seems to become
corrupted, and the Superfish menus are all displayed cascading down the screen.

Within Safari's debugger I get:

TypeError: 'undefined' is not a function (evaluating 'jQuery('#superfish-1').supersubs({minWidth: 12, maxWidth: 27, extraWidth: 1})')

pointing to this code on the page:

<!--//--><![CDATA[//><!--
jQuery(function(){
jQuery('#superfish-1').supersubs({minWidth: 12, maxWidth: 27, extraWidth: 1}).superfish({
animation: {opacity:'show'},
speed: 'fast',
autoArrows: false,
dropShadows: true});
});
//--><!]]>

If I clear the cache everything returns to normal, and looks/works fine, for some period of hours, and
then it breaks again.

Drupal version is 7.12.

Not sure if this is a Superfish issue, Drupal core issue with caching, etc. Any suggestions (including
a better place to post this, if appropriate) would be appreciated.

Thanks!

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States abrewster

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024