• Resolved danwpc

    (@danwpc)


    Hi Frank,

    Under js advanced settings options you say:

    A comma-seperated list of scripts you want to exclude from being optimized, for example ‘whatever.js, another.js’ (without the quotes) to exclude those scripts from being aggregated and minimized by Autoptimize.

    In some cases scripts are named “script.js” – which means the name could easily be shared by other scripts – thus limiting my ability to target exclusion of a particular script. Is there a way to exclude based on path?

    Thanks!

    https://ww.wp.xz.cn/plugins/autoptimize/

Viewing 1 replies (of 1 total)
  • Plugin Author Frank Goossens

    (@futtta)

    sure;

    wp-content/plugins/pluginname/script.js
    or
    plugins/pluginname/script.js
    or
    pluginname/script.js

    pick you favorite 🙂

    frank

Viewing 1 replies (of 1 total)

The topic ‘Javascript advanced settings exclude by script name instead of path’ is closed to new replies.