• Resolved abalegno

    (@abalegno)


    Hi, I have an error in the mobile version of my site specifically when I want to open the menu:

    Uncaught ReferenceError: activeSlide is not defined
    at HTMLAnchorElement. (autoptimize_0884c11be058ab1ead86108c14772d37.js:2:1545)
    at HTMLDocument.dispatch (jquery.min.js:2:43064)
    at y.handle (jquery.min.js:2:41048)
    at HTMLDocument.c (rocket-loader.min.js:1:9405)

    Screenshoot: https://ibb.co/wYZtqXM

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter abalegno

    (@abalegno)

    What I could test, is that if I am logged in the wordpress I don’t have any error and the mobile menu works correctly.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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 abalegno

    (@abalegno)

    For now just disable “Optimize JavaScript Code?” and the menu works. However, it worked fine before, I’m pretty sure of that.

    This is the option that returns the error if it is active: https://ibb.co/Njr8XMZ

    • This reply was modified 1 year, 1 month ago by abalegno.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    looks like *something* (the Async JavaScript plugin?) is asyncing jQuery abalegno, can you configure it so that does not happen?

    Thread Starter abalegno

    (@abalegno)

    Check and jquery is excluded: https://ibb.co/VqjRXHs

    another problem maybe ?

    • This reply was modified 1 year, 1 month ago by abalegno.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, that fixed the jQuery errors I was seeing at least, so we’re getting closer 😉

    now can you add themes/vantage/inc/mobilenav/js/mobilenav.min.js to the comma-separated JS optimization exclusion list in AO (and likely in AsyncJS as well, or disable that for now to avoid having to “fight on two fronts”?)

    Thread Starter abalegno

    (@abalegno)

    Perfect, add the exclusion on both sides just in case, everything seems to work correctly.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    good job! feel free to leave a review of the plugin and support here 🙂

    have a nice day,
    frank

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Site origin mobile menu error: activeSlide is not defined’ is closed to new replies.