• Resolved sunofjuche

    (@sunofjuche)


    Hello, I’m facing a problem when scripts on my page aren’t being optimized and deferred by Autoptimize, which happens only when I’m logged in as admin. This causes errors in scripts and prevents them from working at all with error logs shown below

    So, this is clear that Autoptimize’s cached JS isn’t being load when admin

    And when guset, everything works fine

    Here’s my plugin options

    As you can see, I have “Also optimize for logged in editors/ administrators?” on, but it still seems to make no difference (I’ve tried disabling and re-enabling it). I’m not sure how I can address this problem, could you please help me?

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

    (@optimizingmatters)

    so CSS optimization works for both anonymous & logged in admins, but JS opt. does not?

    the only thing I can think of is that a plugin (or your theme) is using AO’s API to instruct it not to optimize maybe? to test you could try disabling (and re-enabling) plugins one at a time and/ or switching themes briefly to try to find a possible culprit?

    hope this helps,
    frank

    Thread Starter sunofjuche

    (@sunofjuche)

    Yeah, it seems Elementor plugin was causing this issue. I just wanted to confirm I’m not mixing things up. Thanks, and sorry for bothering!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    no worries, happy you found the culprit ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not optimizing/deferring’ is closed to new replies.