Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Minify with JavaScript async/defer

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles