• I need to exclude some scripts in order to get the cookieyes plugin working correctly alongside autoptimize. One of these is “client_data/(.*)/script.js” but it doesn’t accept the * and gives the error “please match the format requested”.

    How would I exclude this script? Thanks

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

    (@optimizingmatters)

    Autoptimize indeed does not support wildcards like that, client_data/ would exclude every JS in that directory (and below), /script.js would exclude all JS with that exact filename, so you’ll have to play the most specific string possible that matches the path.

    as an alternative; if you control the way the script is added (enqueued) in WordPress, you could add the data-noptimize attribute to the script tag and it would be excluded as well?

    hope this helps,
    frank

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.