Title: Divi Mobile Menu Dropdown Issue
Last modified: February 2, 2021

---

# Divi Mobile Menu Dropdown Issue

 *  Resolved [jayjay524](https://wordpress.org/support/users/jayjay524/)
 * (@jayjay524)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/divi-mobile-menu-dropdown-issue/)
 * Hi, I have an issue with my website where the accordion on the mobile menu is
   no longer working. I contacted divi and they flagged it to be an issue with Autoptimise
   after the issue was resolved when deactivating the program.
 * Could this be looked at?
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdivi-mobile-menu-dropdown-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/divi-mobile-menu-dropdown-issue/#post-13993014)
 * Sure! First and foremost try to identify what is breaking things by just disabling
   CSS or JS or HTML or Image optimization (incl. lazyload). Based on that we can
   see what the next steps need to be 🙂
 * frank
 *  Thread Starter [jayjay524](https://wordpress.org/support/users/jayjay524/)
 * (@jayjay524)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/divi-mobile-menu-dropdown-issue/#post-13995829)
 * Hi Frank,
 * It is JS,
 * Uncaught TypeError: e.indexOf is not a function
    at S.fn.init.S.fn.load (jquery.
   min.js:2) at (index):1134 at (index):1140
 * Thanks,
    Jordan
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/divi-mobile-menu-dropdown-issue/#post-13995889)
 * OK, can you try adding `jquery-migrate.min.js` to the comma-separated JS optimization
   exclusion list?
 *  Thread Starter [jayjay524](https://wordpress.org/support/users/jayjay524/)
 * (@jayjay524)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/divi-mobile-menu-dropdown-issue/#post-13996285)
 * Hi that seems to have worked but im now getting two new errors in the console:
 * Uncaught TypeError: Cannot read property ‘replace’ of undefined
    at HTMLDivElement.
   <anonymous> (autoptimize_single_83e80d530d9d2d9f56703bc35cf79317.js:46) at HTMLDivElement.
   dispatch (jquery.min.js:2) at HTMLDivElement.v.handle (jquery.min.js:2)
 * here is the optimisation exclusion list currently:
 * wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js,, js/jquery/
   jquery.min.js, jquery-migrate.min.js
    -  This reply was modified 5 years, 3 months ago by [jayjay524](https://wordpress.org/support/users/jayjay524/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/divi-mobile-menu-dropdown-issue/#post-13996331)
 * Can you untick “also minify excluded CSS/ JS” Jordan and then re-check the browser
   console to see what the original filename is?
 *  Thread Starter [jayjay524](https://wordpress.org/support/users/jayjay524/)
 * (@jayjay524)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/divi-mobile-menu-dropdown-issue/#post-13996518)
 * That’s sorted it, many thanks for your help!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/divi-mobile-menu-dropdown-issue/#post-13996870)
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂
 * have a nice day!
    frank

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

The topic ‘Divi Mobile Menu Dropdown Issue’ 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: [5 years, 3 months ago](https://wordpress.org/support/topic/divi-mobile-menu-dropdown-issue/#post-13996870)
 * Status: resolved