Hi @napalmx37,
Please make sure that you add the regex in all the exclusion fields under JS optimisation and then clear the cache.
Hi. Apologies for the stupid question. Do I paste the regex in the Excluded JavaScript Files field, and clear the cache?
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.
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/)(.*)
Hi @napalmx37,
You should add them one per line. Please don’t add in the same line.
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
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?
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 48 minutes ago by
napalmx37.
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.
I checked in another browser and it works.
Thanks for your help – much appreciated
