• Resolved uplinkpunk

    (@uplinkpunk)


    Hey,

    Thanks for the plugin. It’s the only minify plugin which is compatible with my theme.

    Though, CSS and HTML minification was done beautifully by the plugin, I am facing problems with JS minifications.

    One of the plugin which won’t work after the minification is “Shortcode Ultimate
    Some element (Xprofile Buddypress) classes inserted by JS are also removed. This cause the element to misbehave. Disable JavaScript processing solves the issue for the same.

    Also, I couldn’t find any updated FAQ related to using wildcard. Can you give me an example of excluding all the js for my theme?

    Thanks.
    I shall be very grateful for your help.

Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    Hi,

    Guess I need to update the faq’s again, it must have been lost sometime ago… thanks for letting me know.

    If you disable js processing, it does just that and leaves all js files alone, so there’s no need for a wildcard if you want to disable all js processing.

    As for the “shortcode ultimate” plugin there are a few solutions and possibilities.

    a) Disable the JS defer option. The plugin might need to be render blocking.

    b) Try to add jQuery to the ignore list.

    c) Sometimes double minification causes issues, so if the “shortcode ultimate” plugin already minified the script but they didn’t rename it end in “.min.js” it get’s double minified. Try to disable “js minification” and clear both the intermediate cache and the plugin cache on the status page.

    d) Merging with other js files might be conflicting so take a look at the google chrome console log (CTRL + SHIFT + J) and refresh for errors.

    In that case, you can add the relevant js files to the ignore list (just copy paste them from the log on the status page) or you can add all js files from the log to the ignore list and then, one by one remove them until you find the one causing trouble.

    e) If some classes are being stripped off from html, those could be relying on jQuery to work. Again, make sure jQuery is render blocking and not deferred, else $ or jQuery will be “undefined” when the code runs.

    The wildcard option will match any string to the url as long as it ends in “*”.

    For example, you could exclude any js file on any plugin directory like this:

    //domain.com/wp-content/plugins/my-plugin/js/*

    The plugin will check if //domain.com/wp-content/plugins/my-plugin/js/ is part of any processed file and exclude it.

    If you can sort things out, let me know.

Viewing 1 replies (of 1 total)
  • The topic ‘JS Processing’ is closed to new replies.