Title: Plugin not working, because jQuery not loading
Last modified: August 31, 2016

---

# Plugin not working, because jQuery not loading

 *  Resolved [gabrielwolf](https://wordpress.org/support/users/gabrielwolf/)
 * (@gabrielwolf)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/)
 * I use Sage 8.4.2 and the Soil Plugin to load jQuery 1.x via CDN.
    Deactivating
   Soil and all plugins and my other js doesn’t help to start queueing.
 * “The Asset Queue Manager panel did not load. This can happen if jQuery is not
   being loaded on the page. If you have encountered this error after dequeuing 
   an asset by mistake, you can restore all assets dequeued by Asset Queue Manager.
   This message is only shown to administrators.”
 * Any hint would be great!
 * Best,
    Gabriel
 * [https://wordpress.org/plugins/asset-queue-manager/](https://wordpress.org/plugins/asset-queue-manager/)

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

 *  Plugin Author [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/#post-7197215)
 * Hi Gabriel,
 * When you inspect the assets loaded in your browser’s dev tools, are you seeing
   jQuery loaded on the page at all?
 *  Thread Starter [gabrielwolf](https://wordpress.org/support/users/gabrielwolf/)
 * (@gabrielwolf)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/#post-7197222)
 * Hi Nate,
 * without AQM active jQuery is being loaded and used. With your plugin active I
   get this error in the Console: _Uncaught Error: Syntax error, unrecognized expression:.
   asset.handle-sage/css.styles_
 *  Plugin Author [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/#post-7197281)
 * Have you brought this issue to the attention of the Sage devs? They’d be better
   positioned to know why there’s a conflict going on. To be honest, there’s really
   nothing special about the JavaScript in AQM. It’s pretty basic, unsophisticated
   jQuery stuff.
 *  Thread Starter [gabrielwolf](https://wordpress.org/support/users/gabrielwolf/)
 * (@gabrielwolf)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/#post-7197286)
 * I set up a fresh Bedrock/Sage-Wordpress with AQM and “unfortunately” I couldn’t
   reproduce the error. It works. Where should I dig further? Maybe in my specific
   Sage code? I already tried to exclude all JS.
 *  Plugin Author [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/#post-7197323)
 * Maybe you’ve got something dequeued without realizing it? With AQM activated,
   go to the Plugins menu in WordPress. Under AQM you’ll see a link to “Restore 
   Dequeued Assets”.
 * That should blow away the setting in the database so if there’s anything getting
   messed with there it should reset.
 *  Thread Starter [gabrielwolf](https://wordpress.org/support/users/gabrielwolf/)
 * (@gabrielwolf)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/#post-7197371)
 * I’ve done that all the time troubleshooting. I have another idea, I will change
   the theme and go back in Git history of theming to the point where it failed.
   Have to test that.
 *  Thread Starter [gabrielwolf](https://wordpress.org/support/users/gabrielwolf/)
 * (@gabrielwolf)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/#post-7197412)
 * I fixed it!
 * In the file setup.php the main.css and main.js are being loaded with name ‘sage/
   css’ and ‘sage/js’. The ‘/’ conflicts with AQM plugin. Simply remove sage from
   it and there you go. Here are the 2 corrected lines:
 *     ```
       wp_enqueue_style('css', Assets\asset_path('styles/main.css'), false, null);
       [...]
       wp_enqueue_script('js', Assets\asset_path('scripts/main.js'), ['jquery'], null, true);
       ```
   
 *  Plugin Author [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/#post-7197414)
 * Nice! Thanks for reporting back. I’ve filed an [issue](https://github.com/NateWr/asset-queue-manager/issues/6)
   for this. To be honest, though, I’m not doing much active development on the 
   plugin these days. But at least it’s filed for future reference in case anyone
   stumbles upon the problem and a solution for AQM.
 *  [Mizner](https://wordpress.org/support/users/mizner/)
 * (@mizner)
 * [10 years ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/#post-7197459)
 * [@gabrielwolf](https://wordpress.org/support/users/gabrielwolf/) – Thank you 
   and great job, this really helped me. Also, Nate I love this plugin.

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

The topic ‘Plugin not working, because jQuery not 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/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [loading](https://wordpress.org/support/topic-tag/loading/)

 * 9 replies
 * 3 participants
 * Last reply from: [Mizner](https://wordpress.org/support/users/mizner/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/plugin-not-working-because-jquery-not-loading/#post-7197459)
 * Status: resolved