Support » Plugin: Swift Performance Lite » How to correctly exclude scripts from being merged/minified.

  • Resolved sekhemty


    I want to exclude some scripts from being merged and minified, these all belong to a single plugin that is having issues after the optimization process.

    The plugin is Convert Plus, and its assets are loaded from its own directory (/wp-content/plugins/convertplug/)

    I’ve tried to add the exclusion to “optimization > scripts > exclude scripts”, by inserting one the following strings:


    but if I insert anything in the exclude box, nothing at all is combined and minified. I only want to exclude this particular plugin assets from the optimization process not all of them.

    Am I doing something wrong?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Scottie S


    You need to use your favorite browser’s dev tools to find the actual name of the script(s) and exclude them from being loaded.
    For example, cp-module-main.js
    is one script that convert plus uses. You would put that under Settings > Optimization > Scripts > exclude scripts
    Do that for all scripts associated with the plugin and it should work no problem. Here is an example of the scripts used. Yours will probably be different. Please don’t copy these and expect it to work.
    exclude scripts

Viewing 1 replies (of 1 total)
  • The topic ‘How to correctly exclude scripts from being merged/minified.’ is closed to new replies.