Title: Defer Specific Scripts
Last modified: July 30, 2020

---

# Defer Specific Scripts

 *  [onyekaxt](https://wordpress.org/support/users/onyekaxt/)
 * (@onyekaxt)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/defer-specific-scripts/)
 * hi
    i get this report from gtmetrix, meanwhile i had already chosen “defer Js”
   generally
 * 382.0KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript
   to reduce blocking of page rendering.
 * [https://www.gstatic.com/recaptcha/releases/AFBwIe6h0oOL7MOVu88LHld-/recaptcha__en.js](https://www.gstatic.com/recaptcha/releases/AFBwIe6h0oOL7MOVu88LHld-/recaptcha__en.js)(
   289.4KiB)
    [https://ezekaworld.com/ew-js/js/jquery/jquery.js?ver=1.12.4-wp](https://ezekaworld.com/ew-js/js/jquery/jquery.js?ver=1.12.4-wp)(
   86.8KiB) [https://ezekaworld.com/](https://ezekaworld.com/) (5.7KiB of inline
   JavaScript) [https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LfuW6oZAAAAAMVFLXQz0j3LcBXPGNK_LdXc0dj0&co=aHR0cHM6Ly9lemVrYXdvcmxkLmNvbTo0NDM.&hl=en&v=AFBwIe6h0oOL7MOVu88LHld-&size=invisible&cb=hiyf2jcf1nd](https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LfuW6oZAAAAAMVFLXQz0j3LcBXPGNK_LdXc0dj0&co=aHR0cHM6Ly9lemVrYXdvcmxkLmNvbTo0NDM.&hl=en&v=AFBwIe6h0oOL7MOVu88LHld-&size=invisible&cb=hiyf2jcf1nd)(
   45B of inline JavaScript)
 * also, does the plugin settings (async or defer) affect only the homepage?
    i’m
   asking cos my pagespeed score is ok for my homepage, but other pages show “0”
   for “defering of JS”
 * kindly proffer solution.
 * regards!
    -  This topic was modified 5 years, 10 months ago by [onyekaxt](https://wordpress.org/support/users/onyekaxt/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdefer-specific-scripts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/defer-specific-scripts/#post-13194441)
 * AsyncJS adds `defer='defer'` to the `<script` nodes with a `src` attribute, I
   had a look and this happens both on your homepage and on /bale-home so from AsyncJS
   all is OK. The fact that GTmetrix still lists some JS as render-blocking is not
   somethings AsyncJS can help with I’m afraid.
 * frank
 *  Thread Starter [onyekaxt](https://wordpress.org/support/users/onyekaxt/)
 * (@onyekaxt)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/defer-specific-scripts/#post-13194541)
 * hi
 * so your plugin doesn’t work for external scripts like googles’?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/defer-specific-scripts/#post-13194693)
 * Well, the `defer='defer'` code that AsyncJS injects are present, so all JS linked
   in the HTML should effectively be deferred. I *guess* this could be a gtmetrix
   mistake, does Google PageSpeed Insights lists those JS-files as render-blocking?
 *  Thread Starter [onyekaxt](https://wordpress.org/support/users/onyekaxt/)
 * (@onyekaxt)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/defer-specific-scripts/#post-13196490)
 * hi
    i have not checked with Google PageSpeed. but you did not answer my question
   directly.
 * Onyeka
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/defer-specific-scripts/#post-13196671)
 * AsyncJS adds defer (or async) flags to all JS files linked in your HTML (including
   Google’s), so it _should_ work, which is why I suspect these are false positives
   from GTMetrix and why I propose to test in GPSI which in my experience has a 
   better view on render-blocking issues 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Defer Specific Scripts’ is closed to new replies.

 * ![](https://ps.w.org/async-javascript/assets/icon-128x128.png?rev=1839260)
 * [Async JavaScript](https://wordpress.org/plugins/async-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/async-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/async-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/async-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/async-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/async-javascript/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/defer-specific-scripts/#post-13196671)
 * Status: not resolved