Title: Getting an error because jQuery isn&#039;t loading
Last modified: August 31, 2016

---

# Getting an error because jQuery isn't loading

 *  Resolved [Davallen](https://wordpress.org/support/users/davallen/)
 * (@davallen)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/getting-an-error-because-jquery-isnt-loading/)
 * Hi, I haven’t managed to make it work. Getting this error “wordpress The Asset
   Queue Manager panel did not load. This can happen if jQuery is not being loaded
   on the page”.
 * Any idea what’s wrong? I checked that jQuery was being loaded. otherwise my site
   wouldn’t work 😀
 * [https://wordpress.org/plugins/asset-queue-manager/](https://wordpress.org/plugins/asset-queue-manager/)

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

 *  Plugin Author [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/getting-an-error-because-jquery-isnt-loading/#post-7046906)
 * Hi Davallen,
 * Not sure. Are you using the core jQuery that’s shipped with WordPress, which 
   loads in compatibility mode? Or are you loading your own version of jQuery?
 *  Thread Starter [Davallen](https://wordpress.org/support/users/davallen/)
 * (@davallen)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/getting-an-error-because-jquery-isnt-loading/#post-7046907)
 * I am using the core jQuery. Just wanted to give you a heads up. I’ve found another
   plugin to do the job
 *  Plugin Author [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/getting-an-error-because-jquery-isnt-loading/#post-7046908)
 * Cool, glad you were able to find another solution. Not sure what the issue is
   but first I’ve heard of it.
 *  Thread Starter [Davallen](https://wordpress.org/support/users/davallen/)
 * (@davallen)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/getting-an-error-because-jquery-isnt-loading/#post-7046909)
 * Yeah, it was weird. But with the other plugin, I had to work an hour, debugging
   and rearranging the script queue, in order to make it work.
    The wirst part is,
   it was a fresh install wit some very minor tweaks in a child theme
 *  [Bryan Willis](https://wordpress.org/support/users/codecandid/)
 * (@codecandid)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-an-error-because-jquery-isnt-loading/#post-7047105)
 * Same issue here with Enlighter
 * [https://github.com/AndiDittrich/WordPress.Enlighter/issues/30](https://github.com/AndiDittrich/WordPress.Enlighter/issues/30)
 * Were you using this plugin Davallen? Or perhaps another one that ships with moottools?
 *  [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-an-error-because-jquery-isnt-loading/#post-7047106)
 * Hi, im the author of the mentioned Enlighter plugin.
    im currently debugging 
   the issue and it is related to MooTools or other Frameworks/Plugins which **extends
   the Native Types**.
 * [@natewr](https://wordpress.org/support/users/natewr/)
    i like your plugin! therefore
   i’ve fixed the following issues. finally your plugin works together with MooTools/
   Enlighter 🙂
 * **First Issue**
 *     ```
       TypeError: asset.src is undefined
       Source: http://wordpress.localnet/wp-content/plugins/asset-queue-manager/assets/js/aqm.js?ver=4.4.2
       Line: 185
       ```
   
 * it seems that the javascript function `getAssetURL` does not check if asset/asset.
   src is defined. therefore `asset.src.toString();` will fail in this case and 
   the error message is not set to invisible.
    i’ve created to following fix – generally
   a toString() on undefined attributes/objects should never called!
 *     ```
       getAssetURL : function( asset ) {
          if (!asset || !asset.src){return 'false';}
       ```
   
 * **Second Issue**
 * In the aqmPanel function, there is a cascade of `for .. in` loops to append the
   assets to the panel, but the check of `hasOwnProperty()` is missing, therefore(
   on extended Types) the loop will fail [@see](https://wordpress.org/support/users/see/)
   [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for…in](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for…in).
   
   I’ve fixed this by using jQuerys build-in function `$.each` to avoid this error.
 *     ```
       var T = this;
       $.each(aqmData.assets, function(loc_key, loc){
           // required for array/object type - maybe the aqmData structure should changed or remove the outer loop
           if ($.type(loc) != 'array' && $.type(loc) != 'object'){
               return;
           }
   
           $.each(loc, function(type_key, type){
   
               $.each(type, function(key, asset){
                   T.appendAsset(asset, loc_key, type_key );
               });
   
           });
   
       });
       ```
   
 * i hope this will help you and continue with your great work.
 * best regards, Andi
 *  Plugin Author [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-an-error-because-jquery-isnt-loading/#post-7047118)
 * Thanks Andi! I saw your PR and will evaluate it for merge as soon as I get a 
   chance. Much appreciated.
 *  Plugin Author [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-an-error-because-jquery-isnt-loading/#post-7047128)
 * Thanks to Andi this has been fixed in the version of Asset Queue Manager I just
   pushed out (v1.0.3).

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

The topic ‘Getting an error because jQuery isn't loading’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/asset-queue-manager.svg)
 * [Asset Queue Manager](https://wordpress.org/plugins/asset-queue-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/asset-queue-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/asset-queue-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/asset-queue-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/asset-queue-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/asset-queue-manager/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [NateWr](https://wordpress.org/support/users/natewr/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/getting-an-error-because-jquery-isnt-loading/#post-7047128)
 * Status: resolved