• Resolved bastien31

    (@bastien31)


    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

    (@bastien31)

    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

    (@leonstafford)

    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

    (@leonstafford)

    Hi Bastien,

    Closing this one now.

    Please let me know if you encounter any other issues.

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    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.