Title: Mobile Menu dropdown doesn&#8217;t work when enabled
Last modified: January 31, 2022

---

# Mobile Menu dropdown doesn’t work when enabled

 *  Resolved [ryanstg24](https://wordpress.org/support/users/ryanstg24/)
 * (@ryanstg24)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/mobile-menu-dropdown-doesnt-work-when-enabled/)
 * Hello,
 * When having Autoptimize enabled, the mobile dropdown menu does not work. When
   disabled it works just fine. I added this wp-content/themes/nss/js/navigation.
   js to exclude from Javascript and CSS, cleared cache and still does not work.
   Any suggestions?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/mobile-menu-dropdown-doesnt-work-when-enabled/#post-15311609)
 * maybe before trying to exclude stuff try simply disabling CSS or JS optimization
   to see which one is impacting the menu for starters. based on that we can see
   what the next step(s) should be 🙂
 * frank
 *  Thread Starter [ryanstg24](https://wordpress.org/support/users/ryanstg24/)
 * (@ryanstg24)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/mobile-menu-dropdown-doesnt-work-when-enabled/#post-15311845)
 * So it is Javascript that is the issue. CSS is fine
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/mobile-menu-dropdown-doesnt-work-when-enabled/#post-15312087)
 * OK, so when JS optimization is active, what JavaScript errors do you see on the
   browser console?
 *  Thread Starter [ryanstg24](https://wordpress.org/support/users/ryanstg24/)
 * (@ryanstg24)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/mobile-menu-dropdown-doesnt-work-when-enabled/#post-15312709)
 * A page or script is accessing at least one of navigator.userAgent, navigator.
   appVersion, and navigator.platform. Starting in Chrome 101, the amount of information
   available in the User Agent string will be reduced.
    To fix this issue, replace
   the usage of navigator.userAgent, navigator.appVersion, and navigator.platform
   with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/mobile-menu-dropdown-doesnt-work-when-enabled/#post-15312768)
 * hmm, afraid that doesn’t help us (not relevant to the issue). can you try adding
   just `wp-content/themes` or `wp-content/plugins` to the comma-separated JS optimization
   exclusion list to see if that allows us to get closer to finding the culprit?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/mobile-menu-dropdown-doesnt-work-when-enabled/#post-15323023)
 * any news ryan? 🙂
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/mobile-menu-dropdown-doesnt-work-when-enabled/#post-15345469)
 * No feedback so I assume this got fixed ryanstg24 ? Feel free to follow up if 
   you still encounter issues!
 * have a nice day!
    frank

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Mobile Menu dropdown doesn’t work when enabled’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/mobile-menu-dropdown-doesnt-work-when-enabled/#post-15345469)
 * Status: resolved