WordPress.org

Ready to get started?Download WordPress

Forums

CDN Sync Tool
[cdn-sync-tool] Exclusion of JS & CSS from minification not working well (1 post)

  1. zapo
    Member
    Posted 3 years ago #

    Hi ! Thanks a lot for the awesome plugin !!
    I just had two little issues when trying the css/js exclusion feature:

    In JsCss.php, look like you're not removing external css/js tags from the html dom once you've added it to the combined file content (you remove it from $content only if it's not detected as external ressource), resulting in having the external file content loaded twice (in dom <script> or <link> tags plus in the minified cache file).

    And also in JsCss.php look like the test trying to match the $file against the content of css/js exclusion textareas can't work in my case because of an invisible extra space added at the end of each line in the textarea (could that be my navigator doing that ?). After triming the exploded content or the textareas the script works well.

    If you can confirm these issues, it would be great to see them fixed some day in the future releases !

    Have a great day

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic