I think we can probably convert the existing javascript to vanilla js and drop the dependency on jQuery. This would be useful for any theme that doesn't use or need jQuery.

I believe the mmenu now has swipe gestures built in (need to test) so in theory the hammerswipe code and dependency can be dropped.

The new setting and options merge is using jquery's $.extend at the moment but probably Object.assign would work too.

CommentFileSizeAuthor
#2 remove_jquery-3134838-2.patch8.48 KBtanc

Comments

tanc created an issue. See original summary.

tanc’s picture

Version: 4.0.x-dev » 4.1.x-dev
StatusFileSize
new8.48 KB

Split the jquery dependent code into another file and updated the dependencies so that jQuery is only loaded if needed by superfish. Updated the README to indicate this.

  • tanc committed 3a853fc on 4.1.x
    Issue #3134838 by tanc: Drop jQuery usage in responsive_menu.config.js
    
tanc’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.