• Resolved darkallman

    (@darkallman)


    I have some errors in my console: jQuery is not defined
    I searched the forum here, and I checked that the following scripts have been excluded:
    wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js

    Any idea how I can fix these issues?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Looks like some kind of conflict with WP Rocket, check to make sure WP Rocket is not doing anything to the JS maybe?

    groeten uit België,
    frank

    Thread Starter darkallman

    (@darkallman)

    These are my WPRocket settings for JS.
    Screenshot WPROCKET

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    look ok. can you clear the wp rocket page cache?

    Thread Starter darkallman

    (@darkallman)

    I have cleared WPRocket Cache, OPCache.
    Cleared Autoptimize Cache also

    Currently preloading WPRocket cache again.

    But same error….

    • This reply was modified 4 years, 2 months ago by darkallman.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Weird; I indeed still don’t see jquery.js in the HTML source at
    https://www.lievelabels.nl/product/vader-zoon-t-shirts/ but when I load that same page with a cache busting querystring appended to it (to make sure that page is not served from a cache somewhere) jquery.js is there;

    Based on that I can only conclude there is some other cache at play here (at hoster level) which needs clearing as well?

    Thread Starter darkallman

    (@darkallman)

    That could only be the OPCache I think….

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OPCache is a different thing, I’m thinking varnish/ nginx type of page caching at hoster level.

    Thread Starter darkallman

    (@darkallman)

    I see that NGINX Caching is enabled in Plesk by hosting.
    I can change settings there, so we could test it.

    No errors when using ?nocache=true
    https://www.lievelabels.nl/?nocache=true

    I disabled nginx Cache, but the error remains. I do not think it is related to nginx caching.

    • This reply was modified 4 years, 2 months ago by darkallman.
    • This reply was modified 4 years, 2 months ago by darkallman.
    Thread Starter darkallman

    (@darkallman)

    Maybe I need to contact WPRocket for this.
    When I disable WPRocket, the error is gone.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Maybe the combination between Nginx caching and WP Rocket somehow, hard to say. I would indeed reach out to the rocketeers, they have great support.

    Thread Starter darkallman

    (@darkallman)

    I found out it’s one option in WPRocket that causes this issue:
    Remove Querystrings from static files.

    When I disable this option, the errors are gone.
    I have notified WPRocket.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Ah, that option has WP Rocket change the filenames (adding the version in the filename instead of as a querystring), so there is no js/jquery/jquery.js but js/jquery/jquery-1.2.34.js (just an example) and hence the exclusion in AO does not match 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘jQuery is not defined’ is closed to new replies.