• Resolved Skrlance

    (@seanlance)


    Hi, I provided the URLs to exclude the js from combining and minification, it isn’t working.

    At first, I provided the URL to exclude, it didn’t worked. Then I provided the path, it also didn’t worked, then I kept each js file name, it also didn’t worked.

    So, exclude js feature isn’t working at all whether we provide individual file names or URLs or path or wildcard ((.*) at the end).

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author owaisalam

    (@owaisalam)

    Could you please share the exact JS file path and the pattern you added in the Exclude JS option?
    This will help us review the configuration and guide you accordingly.

    Thread Starter Skrlance

    (@seanlance)

    I tried various ways one by one when one didn’t worked I tried another and none worked:

    1st Way:


    https://mywebsite.com/wp-includes/js/dist/(.*)
    https://mywebsite.com/wp-includes/js/tinymce/(.*)
    https://mywebsite.com/wp-includes/js/jquery/jquery.min.js

    2nd Way:

    /wp-includes/js/dist/(.*)
    /wp-includes/js/tinymce/(.*)
    /wp-includes/js/jquery/jquery.min.js

    3rd Way:

    wp-includes/js/dist/(.*)
    wp-includes/js/tinymce/(.*)
    wp-includes/js/jquery/jquery.min.js

    Now, on the following ways I tried for single js to verify if it is actually working:

    4th way:

    https://mywebsite.com/wp-includes/js/jquery/jquery.min.js

    5th way:

    /wp-includes/js/jquery/jquery.min.js

    6th way:

    wp-includes/js/jquery/jquery.min.js

    7th way:

    jquery.min.js

    None of those ways worked at all!

    Please excuse the comment formatting that WordPress.org comment editor automatically forcing to keep all my comments in the code. Besides, mywebsite.com I have written for an example only while my actual domain is not mywebsite.com, plz don’t get confused!

    • This reply was modified 2 days, 22 hours ago by Jan Dembowski. Reason: Fixed formatting
    Plugin Author owaisalam

    (@owaisalam)

    Thank you for sharing the details!

    Just to clarify a bit — cache plugins usually minify JS files that come from your active theme and plugins, and they let you exclude those if needed. But for files that come from the WordPress core, the plugin doesn’t handle them in the same way, so they can’t be excluded through the cache plugin.

    I hope this helps make it a bit clearer why these JS files aren’t being excluded — they’re simply not processed by the minification either.

    Thread Starter Skrlance

    (@seanlance)

    Actually, the issue is not in the minify, problem appeared in the browser console with errrors when all those js were combined.

    All other cache plugins I used in the past, were excluding those js when kept their location in the exclude js from combining.

    I was seeking for the same thing on Breeze plugin.

    Thread Starter Skrlance

    (@seanlance)

    Seems like when I don’t Include Inline JS the errors on console goes away!

    Thanks for your time and support!

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

You must be logged in to reply to this topic.