Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @napalmx37,

    Please make sure that you add the regex in all the exclusion fields under JS optimisation and then clear the cache.

    Thread Starter napalmx37

    (@napalmx37)

    Hi. Apologies for the stupid question. Do I paste the regex in the Excluded JavaScript Files field, and clear the cache?

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @napalmx37,

    You should paste the regex: client_data/(.*)/script.js in all the Excluded JavaScript Files fields under,

    • Minify JavaScript files
    • Load JavaScript deferred
    • Delay JavaScript execution

    Save the changes and then clear the cache.

    Thread Starter napalmx37

    (@napalmx37)

    OK. I’ve done that, and still nothing

    As a last resort, should I paste the regex at the end in the same places

    \/jquery(-migrate)?-?([0-9.]+)?(.min|.slim|.slim.min)?.js(\?(.*))?( |'|"|>)js-(before|after)(?:/wp-content/|/wp-includes/)(.*)
    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @napalmx37,

    You should add them one per line. Please don’t add in the same line.

    Thread Starter napalmx37

    (@napalmx37)

    Ok. I’ve done that – but when I save the Excluded Javascript files revert to this

    client_data/(.*)/script.js
    /jquery(-migrate)
    js-(before|after)

    The other 2 doesn’t

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @napalmx37,

    Sorry, we didn’t get your point. Could you please share a screenshot of the same and elaborate on the issue you face?

    Thread Starter napalmx37

    (@napalmx37)

    So right at the bottom is the following code (over 3 lines) – do I make that into one line?

    \/jquery(-migrate)?-?([0-9.]+)?(.min|.slim|.slim.min)?.js(\?(.*))?( |'|"|>)js-(before|after)(?:/wp-content/|/wp-includes/)(.*)

    But if I paste that into the Excluded Javascript files under Minify Javascript section it changes it.

    https://snipboard.io/nETbsr.jpg

    • This reply was modified 1 year, 12 months ago by napalmx37.
    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @napalmx37,

    Our regex is added correctly as per the screenshot you have shared.
    Also, some formats are not supported for the field under Minify JavaScript files. Please read the text below that field and make changes accordingly.

    Thread Starter napalmx37

    (@napalmx37)

    I checked in another browser and it works.

    Thanks for your help – much appreciated

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

The topic ‘WP Rocket conflict’ is closed to new replies.