Title: Minify with JavaScript async/defer
Last modified: April 29, 2020

---

# Minify with JavaScript async/defer

 *  Resolved [tordevries](https://wordpress.org/support/users/tordevries/)
 * (@tordevries)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/minify-with-javascript-async-defer/)
 * 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](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/minify-with-javascript-async-defer/#post-12754797)
 * Hello [@tordevries](https://wordpress.org/support/users/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](https://wordpress.org/support/users/tordevries/)
 * (@tordevries)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/minify-with-javascript-async-defer/#post-12759296)
 * 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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [defer](https://wordpress.org/support/topic-tag/defer/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 2 replies
 * 2 participants
 * Last reply from: [tordevries](https://wordpress.org/support/users/tordevries/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/minify-with-javascript-async-defer/#post-12759296)
 * Status: resolved