• Resolved jonnylco

    (@jonnylco)


    I have installed Autoptimize plugin + Async Javascript.

    Everything was fine for a few hours then the main menu experienced problems with dropdown feature (menu doesn’t expand anymore on desktop and tablet, still working on the smartphone). At the same time, the image on the author box disappeared too.

    Can somebody help in understanding what is causing a conflict?

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    sure; let’s start with some questions, shall we? ??

    1. do you see any JavaScript errors on the browser console?
    2. what happens when you turn asyncjs off and autoptimize stays on?
    3. what happens when you turn autoptimize off and leave asyncjs on?

    frank

    Thread Starter jonnylco

    (@jonnylco)

    Hi Frank,

    About your questions:

    1)When I check page source from the browser I see these 3 warnings:
    [Error] ReferenceError: Can’t find variable: Backbone
    (anonymous function) (notes-common-v2.js:32)
    Global Code (notes-common-v2.js:158:282)
    [Error] ReferenceError: Can’t find variable: _
    Global Code (admin-bar-v2.js:2)
    [Error] TypeError: $ is not a function. (In ‘$(“.header_search_trigger_open”)’, ‘$’ is undefined)
    Global Code (www.vpnmag.fr:194:21043)

    2) Problem persists
    3) Problem persists

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, can you first and foremost set jQuery not to be deferred (it has to be excluded)?

    Thread Starter jonnylco

    (@jonnylco)

    Done.

    About jQuery Method it has to be defer or Async?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    neither, jQuery should be excluded from being deferred/ asynced ??

    Thread Starter jonnylco

    (@jonnylco)

    I see.

    However the last box “Async Javascript for plugins” on the jQuery I have only the defer and async option. How do I exclude it here?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    don’t activate “enable Autoptimize support” in that case in which case that setting doesn’t matter?

    Thread Starter jonnylco

    (@jonnylco)

    I applied your settings, the problem still here.

    Any other thing that could be wrong?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Had to do a hard refresh, but the jQuery error is gone and the menu now works for me?

    Thread Starter jonnylco

    (@jonnylco)

    Working even at my end now.

    Thank you very much, you have been super helpful!!!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! ??

    Thread Starter jonnylco

    (@jonnylco)

    Hey, I have another question for you.

    You told me to set jQuery to Exclude.
    I noticed that if the setting is “Exclude” i get a page speed around 70/72.
    If I set it to “Defer” page speed is around 95/98.

    Why so? Wouldn’t be better to leave it to Defer?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Why so?

    because stuff broke when you were deferring jQuery? ??

    Thread Starter jonnylco

    (@jonnylco)

    You are right!!!
    However, I forgot to add an important detail.
    I hade the same Defer setting on another website but nothing was broken. I adjusted the setting to Exclude and speed dropped.
    Even in this case is still better to set it to exclude?

    Thx

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, required settings (exclusions) depend on the context (combination of theme, plugins & settings). if on the other site all works fine (and you have not “jQuery is not defined” errors on the browser console) then there’s no need to exclude ??

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Dropdown Menu not working anymore + Author box issue’ is closed to new replies.