Title: [Plugin: CDN Sync Tool] Not excluding JS
Last modified: August 20, 2016

---

# [Plugin: CDN Sync Tool] Not excluding JS

 *  [iraweissman](https://wordpress.org/support/users/iraweissman/)
 * (@iraweissman)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-excluding-js/)
 * I use WP Super Popup which apparently needs to have its JS loaded separately,
   or else the popup doesn’t pop up. I’m trying to list the two JS files that load
   in the “exclude JS” box, but it’s not working. I’ve tried to list the files several
   different ways, ie:
    [http://www.domain.com/wp-content/plugins/&#8230](http://www.domain.com/wp-content/plugins/&#8230);/
   wp-content/plugins… wp-content/plugins… /home/MYDOMAIN/public_html/wp-content…
 * Nothing seems to work. What is the proper way to list files in that box? And 
   assuming I’ve done that already, is there any way to get it to work?
 * [http://wordpress.org/extend/plugins/cdn-sync-tool/](http://wordpress.org/extend/plugins/cdn-sync-tool/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ollie Armstrong](https://wordpress.org/support/users/olliea95/)
 * (@olliea95)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-excluding-js/#post-2308727)
 * I’m looking into this
 *  [alexvs](https://wordpress.org/support/users/alexvs/)
 * (@alexvs)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-excluding-js/#post-2308768)
 * It’s problem in function ‘doCombine’ in file ‘cdn-sync-tool\lib\Cst\JsCss.php’.
 * You have a choice:
    1. Write in exclude list full path to file, like: [http://your-domain.com/wp-content/themes/jcarusel/jcarusel.css](http://your-domain.com/wp-content/themes/jcarusel/jcarusel.css)
 * 2. Edit function ‘doCombine’ in file ‘cdn-sync-tool\lib\Cst\JsCss.php’:
    Change
 *     ```
       if (in_array($file, explode("\n",$filesConfig["exclude_js"])) ||
       in_array($file, explode("\n",$filesConfig["exclude_css"]))) {
       continue;
       }
       ```
   
 * to
 *     ```
       if (in_array(basename($match[1]), explode("\n",$filesConfig["exclude_js"])) ||
       in_array(basename($match[1]), explode("\n",$filesConfig["exclude_css"]))) {
       continue;
       }
       ```
   
 * then use only file name in exclude list (ex.: jcarusel.css)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: CDN Sync Tool] Not excluding JS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cdn-sync-tool.svg)
 * [CDN Sync Tool](https://wordpress.org/plugins/cdn-sync-tool/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cdn-sync-tool/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cdn-sync-tool/)
 * [Active Topics](https://wordpress.org/support/plugin/cdn-sync-tool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cdn-sync-tool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cdn-sync-tool/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [alexvs](https://wordpress.org/support/users/alexvs/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-not-excluding-js/#post-2308768)
 * Status: not resolved