Title: jquery is missing error
Last modified: December 28, 2018

---

# jquery is missing error

 *  Resolved [bastien31](https://wordpress.org/support/users/bastien31/)
 * (@bastien31)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/jquery-is-missing-error/)
 * Hi,
 * I am trying your amazing plugin. I did just a few pages, have some plugins installed(
   async javascript, autoptimize, …) and I generate the static website with your
   plugin.
 * It’s lightning fast 🙂 but I have these errors in the console:
    Uncaught ReferenceError:
   jQuery is not defined at /mystaticsite/wp-includes/js/jquery/jquery-migrate.min.
   js:2
 * Uncaught (in promise) ReferenceError: currentURL is not defined
    at then.catch.
   e (content_script_bundle.js:13)
 * I don’t have these errors in the dynamic website.
 * I don’t want jQuery unless it’s necessary which I don’t think for my very simple
   website.
 * Did you stumble upon this error ? Is yes, do you think it’s plugins on my side
   that are using jQuery which are conflicting with the static generated code ?
 * Thanks a lot
 * Bastien

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

 *  Thread Starter [bastien31](https://wordpress.org/support/users/bastien31/)
 * (@bastien31)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/jquery-is-missing-error/#post-11033305)
 * I reply to myself. Jquery is included in the static files in the wp_included 
   directory.
 * I think that the Async Javascript plugin defer the jquery file and some plugin/
   theme try to use it before it has been loaded. I just to add an exception for
   this file in the async plugin.
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/jquery-is-missing-error/#post-11033455)
 * Hi Bastien,
 * Thanks for using the plugin!
 * I think that’s the issue here. I haven’t used that plugin, but can imagine it
   ties into the wp_enqueue_script and won’t play nice with static. Please let me
   know how you go after disabling it.
 * Cheers,
 * Leon
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/jquery-is-missing-error/#post-11043170)
 * Hi Bastien,
 * Closing this one now.
 * Please let me know if you encounter any other issues.
 * Cheers,
 * Leon
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/jquery-is-missing-error/#post-11055741)
 * Hi Bastien,
 * Please download the latest update (6.2), just released today, it should sort 
   out any remaining JS issues. If not, please let me know and I’ll look into the
   async plugin support.
 * Cheers,
 * Leon

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

The topic ‘jquery is missing error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/static-html-output-plugin_cce3eb.
   svg)
 * [WP2Static](https://wordpress.org/plugins/static-html-output-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/static-html-output-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/static-html-output-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/static-html-output-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/static-html-output-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/static-html-output-plugin/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/jquery-is-missing-error/#post-11055741)
 * Status: resolved