Title: Superfish, hoverIntent and jQuery
Last modified: August 20, 2016

---

# Superfish, hoverIntent and jQuery

 *  [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/)
 * I’m not sure if this is the best place for this post but here goes.
 * I’m just wrapping up testing a theme which is using superfish for the menu system.
   I noticed that superfish.js has been going through some updates this year due
   to compatibility issues with jQuery 1.9.0.
 * I tried the new superfish.js version 1.511 and have had some issues with it.
 * After some testing I have come to the following conclusions :
 * Older versions of superfish (I use 1.4.8) are not compatible with jQuery 1.9.0.
   When WordPress updates to a new jQuery there could be a lot of problems, as I’m
   sure there are quite a few themes using superfish.
 * The new version of superfish 1.5.11 is needed for jQuery 1.9.0 and it is compatible
   with jQuery 1.8.3 (current WordPress version) but not with the existing version
   of hoverIntent. A patched version of hoverIntent must be used [see it here](https://github.com/joeldbirch/onHoverIntent).
 * I thought I’d post this to see if other theme authors have run into the same 
   issue, and if WordPress is looking into it. A simple fix wold be to update to
   the patched version of hoverIntent, provided it does not cause other issues.
 * I tested it and did with 3.5.1 and not see any problems in the admin area, but
   then I’d hardly call myself an expert.

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/page/2/?output_format=md)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531736)
 * Why would anyone from “WordPress” need to look into it? None of the default themes
   use superfish and it’s up to the individual theme developers to update their 
   themes as, and when, needed.
 *  Thread Starter [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531752)
 * Two reasons :
 * 1) When WordPress updates to jQuery 1.9.0 there will be a lot of issues with 
   themes using old superfish versions.
    2) Themes will not be approved if they 
   load non native jQuery plugins, and hoverIntent is a native jQuery plugin.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531754)
 * 1) That’s not a core WordPress issue. As I said, it’s up to the individual theme
   developers to update their themes as, and when, needed
 * 2) Sorry? Themes being submitted to WPORG can use whatever jQuery plugins they
   want. What they cannot do is de-register core jQuery.
 *  Thread Starter [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531758)
 * 1) A simple update to the patched hoverIntent(after more comprehensive testing)
   would avoid a lot of headaches with broken themes. Based on all the jQuery headaches
   I saw with the 3.5 upgrade I would have thought WordPress.org may at least want
   to look at this.
 * 2) So I can deregister hoverIntent and enqueue the patched one?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531761)
 * 1) No – this is very much theme developer territory. Core devs have more than
   enough to do updating & improving WordPress itself. Added to which, anyone using
   jQuery to create nav menus is taking a big risk anyway. No primary site functionality
   should depend on js. It may not be available in all browsers and can also be 
   totally inaccessible for some user groups.
 * 2) Is hoverIntent part of core jQuery?
 *  Thread Starter [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531765)
 * 1) Thanks for the comments esmi.
 * 2) I would not have asked the question if I knew that.
 *  Thread Starter [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531768)
 * Sorry to keep harping on this esmi but I’m just trying to understand where you
   are coming from.
 * Any jQuery plugin that is bundled with WordPress is considered core?
 * If that is true then what you are saying is that all themes in WordPress.org 
   that use superfish will likely have to remove it and re-code their menu system?
 *  Thread Starter [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531778)
 * One final update.
 * You can disable hoverIntent detection in superfish.js. Not a perfect solution,
   but superfish seems to work fine without it.
 * Thanks for the discussion esmi.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531820)
 * > Any jQuery plugin that is bundled with WordPress is considered core?
 * No. WordPress just bundles in jQuery itself. There’s a list [here](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Default_scripts_included_with_WordPress)
   on what scripts are included. I don’t see hoverIntent in there – which means 
   that it could, in theory, be enqueued separately by the theme.
 * > all themes in WordPress.org that use superfish will likely have to remove it
   > and re-code their menu system?
 * If you are saying that they will break when superfish is updated, then yes. They
   may need to enqueue the patched version of hoverIntent.
 * FWIW, this kind of thing happens all of the time – especially when the version
   of jQuery bundled with core changes. Warnings are out as much as possible. Plus
   you can always run the alpha/beta version of the next major WP update on a local
   server for testing purposes – which is what I do. That way, I can test and make
   any changes needed ready for the next release.
 *  Thread Starter [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531824)
 * Thanks for your time esmi 🙂
 *  [briancherne](https://wordpress.org/support/users/briancherne/)
 * (@briancherne)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531946)
 * [@kevinhaig](https://wordpress.org/support/users/kevinhaig/), I just updated 
   hoverIntent (now r7).
 * – Backwards compatible.
    – Supports event delegation. – Supports handlerInOut,
   for parity with hover. – Namespaced events, for better isolation.
 * Updated my site – [http://bit.ly/hoverIntent](http://bit.ly/hoverIntent)
    Pushed
   to GitHub – [http://git.io/hoverIntent](http://git.io/hoverIntent)
 * I don’t have any more visibility into the use of hoverIntent than you do. I heard
   it was used in the admin pages of WordPress at one point (haven’t verified). 
   Individual theme authors will likely need to update their themes.
 *  Thread Starter [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531947)
 * Thanks Brian
 * I’ll take a look at the new version.
 *  [briancherne](https://wordpress.org/support/users/briancherne/)
 * (@briancherne)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531949)
 * [@kevinhaig](https://wordpress.org/support/users/kevinhaig/), Joel Birch submitted
   a ticket to have hoverIntent updated in WordPress.
    [http://core.trac.wordpress.org/ticket/23752](http://core.trac.wordpress.org/ticket/23752)
 * [@esmi](https://wordpress.org/support/users/esmi/), I’m not a WordPress developer
   so I’m not sure what the page you linked to specifies/indicates (if it’s meant
   to be authoritative and/or needs to be updated), but per the ticket above I just
   learned that hoverIntent is bundled in the WordPress code!
    [http://core.trac.wordpress.org/browser/trunk/wp-includes/js/hoverIntent.js](http://core.trac.wordpress.org/browser/trunk/wp-includes/js/hoverIntent.js)
   [http://core.trac.wordpress.org/browser/trunk/wp-includes/js/hoverIntent.min.js](http://core.trac.wordpress.org/browser/trunk/wp-includes/js/hoverIntent.min.js)
 * Brian.
 *  Thread Starter [kevinhaig](https://wordpress.org/support/users/kevinhaig/)
 * (@kevinhaig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3531950)
 * That was my concern all along Brian. I guess I need to take the time to figure
   out how to submit a ticket myself.
 *  [susansalleh](https://wordpress.org/support/users/susansalleh/)
 * (@susansalleh)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/#post-3532022)
 * I’m having similar issues with this as well as most of the themes on my sites
   use superfish for navigation menu and no longer works as they should after updating
   to the latest versions of WP.
 * May I ask is the solution just to download the latest version of hoverintent 
   and replace the one that came with WP?

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/page/2/?output_format=md)

The topic ‘Superfish, hoverIntent and jQuery’ is closed to new replies.

 * 19 replies
 * 4 participants
 * Last reply from: [susansalleh](https://wordpress.org/support/users/susansalleh/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/superfish-hoverintent-and-jquery/page/2/#post-3532031)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
