• Resolved chrischee18

    (@chrischee18)


    Hi guys.

    It seems that Autoptimize is incompatible with Hustle plugin.

    How do I get around making it compatible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens

    (@futtta)

    don’t know Hustle, but in general css and esp. script optimization can break things, which is why AO has a settings-screen on which you can change the configuration to such problems. have a look at AO’s FAQ for info on how to troubleshoot an feel free to report your progress here or to ask for clarifications if needed ??

    enjoy the weekend!
    frank

    Thread Starter chrischee18

    (@chrischee18)

    Update: I found that checking try-catch wrapping works.

    Can you explain to me what try-catch actually does?

    Plugin Author Frank Goossens

    (@futtta)

    Can you explain to me what try-catch actually does?

    well, if you have one file (the autoptimized JS) and in that file one block of JS breaks, then (depending on the type of error) the code after that by default is not executed. try-catch tries to isolate the error, allowing the following code to function. this implies the problem is likely not with hustle, but another plugin’s JS. have a look at your browser’s console for JS errors, those might help identifying the root cause.

    frank

    Thread Starter chrischee18

    (@chrischee18)

    Thanks Frank.

    I took a look at my console and errors appear for notes-common-v2.js and admin-bar-v2.js.

    View post on imgur.com

    • This reply was modified 7 years, 10 months ago by chrischee18.
    • This reply was modified 7 years, 10 months ago by chrischee18.
    • This reply was modified 7 years, 10 months ago by chrischee18.
    Plugin Author Frank Goossens

    (@futtta)

    Well, jQuery is not defined is mentioned in the FAQ; add js/jquery/jquery.js to the comma-separated JS optimization exclusion list.

    The _ is not defined might be specific to being logged in, but if you want to fix that too you can add js/unscore.min.js to the same exclusion list.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Incompatible with Hustle Plugin’ is closed to new replies.