• Resolved extremecarver

    (@extremecarver)


    I have a very strange problem – as soon as I disable Autoptimize – Shortcodes Ultimate and some other plugins on my page have broken js.

    Currently – without these enabled my page breaks. No other caching is activated:
    Optimize JavaScript Code? –> Check
    Aggregate JS-files? –> Check
    Force JavaScript in <head>? –> Check
    Add try-catch wrapping? –> Check

    Optimize HTML Code? – >Check

    Running nginx 1.6.1 with php7.3-fpm

    I rather think the problem is with another plugin here however – and somehow autoptimize manages to solve it mysteriously.

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

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

    (@optimizingmatters)

    that sounds like a fun problem ??

    some questions:
    * does that only happen on that specific page, or also other ones?
    * do you see different JS errors on the browser console with or without AO being active?
    * does the problem re-appear if HTML optimization is off but JS is on?
    * does the problem re-appear if HTML optimizatonn is off but HTML is on?

    frank

    Thread Starter extremecarver

    (@extremecarver)

    Thanks for the answer,
    I’m now sure that actually autoptimize is not the cause – it’s a beta version of s2member plugin – and somehow minifying the js and html of s2member is sorting up some mess.

    Somehow it’s also not fully possible to duplicate. Some hours it works, some hours even with nothing changed also activating autoptimize does not help.

    However it’s not s2member breaking itself, but s2member breaking other js scripts…

    • This reply was modified 5 years, 4 months ago by extremecarver.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmmm, if I’m not mistaking the s2member JS is added as a .php file, meaning s2member is (or can be) spitting out different JS in different contexts (time, page, member status, …), so that _could_ explain the difficulty to reproduce?

    anyways, happy it’s not AO ??

    frank

    Thread Starter extremecarver

    (@extremecarver)

    yep – you’re correct. But strangely two sites worked for like 20 hours and then without changing anything it broken on both sites. Going back to release s2member solved the issues. That enabling minification circumvents bugs (and I tried that like 20 times enabling/disabling autoptimize and it consistently fixed the problems) is very strange to me.

    One thing was clear – as soon as I enabled http2 server push – https://www.ads-software.com/plugins/http2-server-push/ – (I guess because of that also circumventing autoptimize because it cannot minimize pushed files in my understanding) – it broke with or without autoptimize.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, guess AO’s try/catch wrapping might be helping there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disabling AO JS Minification breaks my page/Shortcodes Ultimate’ is closed to new replies.