• Resolved tordevries

    (@tordevries)


    In the General settings, I have set Minify to manual. Then, under the Minify settings, in the JS group, I am trying to get JS scripts to be nonblocking with “defer”. Oddly, regardless of what options I choose, the final output <script> tags do not get the “defer” attribute as I expect them to. As a result, page analysis sites like GTmetrix report ding my score a little and tell me that I should try to defer the JS.

    How do I get W3 Total Cache to use “defer” (or async, even) on the <script> tags?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tordevries

    Thank you for your inquiry and I am happy to assist you with this.
    Have you added any JS files to minify or have you just selected the “non-blocking using defer”?
    Thank you!

    Thread Starter tordevries

    (@tordevries)

    I added files —?but then I realized I was missing part of the URI in every JS file reference. My apologies. It’s working now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Minify with JavaScript async/defer’ is closed to new replies.