Support » Plugin: Autoptimize » Autoptimize and Async JavaScript

  • Resolved ElephantDude

    (@elephantdude)


    The defer flag on the autoptimized js file is being stripped out by the async javascript plugin.

    Also the Async JavaScript plugin does not recognize the Autoptimize beta as being installed or activated when you view the status report in the dashboard.

    • This topic was modified 1 year, 2 months ago by  ElephantDude. Reason: Added second issue
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    how could I have missed that?? I’ll fix in asyncJS and get back to you on that 🙂

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ok, so for the most serious issue, could you open wp-content/async-javascript/asyncjsFrontendClass.php and on line 150 (i.e. in the aj_autoptimize_defer function) change;

    return '';

    into:

    return $defer;

    that should ensure the flag is left as is when AsyncJS is not configured to interfere.

    frank

    Brilliant with that code change it works as expected now. Thank you

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, I’ll push out an update later today (or tomorrow if I would fall asleep 😉 ).

    frank

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Autoptimize and Async JavaScript’ is closed to new replies.