Support » Plugin: CDN Sync Tool » [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/...
    /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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ollie Armstrong

    (@olliea95)

    I’m looking into this

    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

    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.