Support » Plugin: LiteSpeed Cache » JS excludes

  • Resolved sirrahikkala

    (@sirrahikkala)


    Hey, if I add some JS scripts to be excluded of all optimizations, did I get it right that it needs to be added to Tuning tab? also does it need to have url structure in some specific format? I added few of them beginning with /wp-content ?

Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Assume you have a JS needs to exclude

    https://domain.com/wp-content/plugins/some-plugin/js/plugin.js

    The URL can be full or partial , so

    wp-content/plugins/some-plugin/js/plugin.js
    plugins/some-plugin/js/plugin.js
    some-plugin/js/plugin.js
    js/plugin.js

    all will work , but make sure it only covers the necessary JS , if you do it like

    wp-content

    then all the JS inside of wp-content will be exclude

    try make the path as accurate as possible.

    Best regards,

Viewing 1 replies (of 1 total)
  • The topic ‘JS excludes’ is closed to new replies.