Title: Not sure if defer javascript works
Last modified: May 27, 2020

---

# Not sure if defer javascript works

 *  Resolved [paladinbrewer](https://wordpress.org/support/users/paladinbrewer/)
 * (@paladinbrewer)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/not-sure-if-defer-javascript-works/)
 * Hello,
 * I’m just now trying your plugin. Marketing is complaining about our scores on
   GTMetrix and Google Pagespeed Insights. So I’ve been trying to defer the javascript,
   and for testing purposes (on a DEV environment) I just defer all javascript. 
   This breaks a few things, and that’s fine, I just want to test it. However when
   I run the GTMetrix score, it still gives me 0 points for Javascript deferment.
   I thought perhaps there was a delay, so I let it sit overnight and checked it
   again today, and it’s the same. Is something not working, or does the scoring
   not pick up on it?

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

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/not-sure-if-defer-javascript-works/#post-12901738)
 * Hello [@paladinbrewer](https://wordpress.org/support/users/paladinbrewer/)
 * I trust you’re doing well!
 * Please see if there are any JS errors on the developer’s console. If there is
   a conflict with another plugin the Asset Optimization will not optimize files.
 * Please make sure page caching is cleared and you’ve visited the front end pages
   at least twice for Asset Optimization optimize all files. Check if there is a
   spinning wheel om asset, if these are there, the file is not being optimized.
   Please see this screenshot:
    [https://take.ms/1Yw3g](https://take.ms/1Yw3g)
 * If the issue still persist, please share here a link to the dev site so we could
   have a closer look.
 * Kind regards,
    Nastia
 *  Thread Starter [paladinbrewer](https://wordpress.org/support/users/paladinbrewer/)
 * (@paladinbrewer)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/not-sure-if-defer-javascript-works/#post-12906037)
 * Oh alright, I did not realize errors were preventing it from working. I went 
   and I deferred all javascripts again (for testing), and I got this:
 * > [View post on imgur.com](https://imgur.com/J1rKHeJ)
 * I stopped deferring the jquery-core, and the error went away and now GTMetrix
   is showing 68 for Defer Parsing of Javascript, instead of 0, so that’s a nice
   jump I suppose. I’m not sure what the “grecaptcha” error is, I only see one javascript
   with that in the name, and turning off deferment does not fix it, but I suppose
   I’ll have to hunt that one down.
 * My related question is, how to get it from 68+ and up, since the javascripts 
   it lists are now mostly off site (googleapis and such).
 * Also, quick question, is “Compress” on your plugin the same as Minify or is that
   done some other way? Thanks for your help thus far.
 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/not-sure-if-defer-javascript-works/#post-12917502)
 * Hello there [@paladinbrewer](https://wordpress.org/support/users/paladinbrewer/)
 * Compress and Minify are about the same functionalities, which is striping empty
   spaces and lines from assets.
 * If you’re having many assets from external sources, then there’s not much you
   can do about them, apart from changing the loading order (footer or defer), as
   you can’t apply modification, combine them together, edit their browser expiry
   settings etc.
 * We’ve also posted couple of optimization guides recently that could further help
   with Asset Optimization in advanced mode. Please check:
 * [https://premium.wpmudev.org/docs/wpmu-dev-setting-configurations/wpmu-dev-performance-optimization-guide/#advanced-asset-optimization-with-hummingbird](https://premium.wpmudev.org/docs/wpmu-dev-setting-configurations/wpmu-dev-performance-optimization-guide/#advanced-asset-optimization-with-hummingbird)
 * [https://premium.wpmudev.org/docs/wpmu-dev-plugins/hummingbird/#asset-optimization-tips](https://premium.wpmudev.org/docs/wpmu-dev-plugins/hummingbird/#asset-optimization-tips)
 * Warm regards,
    Dimitris
 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/not-sure-if-defer-javascript-works/#post-12943764)
 * Hello [@paladinbrewer](https://wordpress.org/support/users/paladinbrewer/)
 * I hope you are doing well!
 * We haven’t heard back from you for a while now so we’ve marked this ticket as
   resolved. If you do have any followup questions or require further assistance
   feel free to reopen it and let us know here.
 * Kind regards,
    Nastia

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

The topic ‘Not sure if defer javascript works’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/not-sure-if-defer-javascript-works/#post-12943764)
 * Status: resolved