• Having FORM reCAPTCHA function issues when activating “Minify JavaScript Files” at “Manage JavaScript Frontend”. Witsh is recommended to turn on.
    So when I then try to exclude that JavaScript from Minification, it shows “Nothing found” at Exclude from JavaScript Minification.

    So if nothing is found to minify, why does turning that on break my FORM reCAPTCHA?
    So it looks like something is minified.
    My conclusion is that the “Exclude from JavaScript Minification” is having a bug.

Viewing 1 replies (of 1 total)
  • Plugin Support Svetoslav Vasev

    (@svetoslavvasev)

    Hello @lutjebroeker

    In case the “Exclude from JavaScript Minification” feature doesn’t list any JS scripts, it’s possible that they’re not enqueued properly or all JS scripts already have their own minified versions, and duplicate minification is not needed.

    Nonetheless, you may consider using the following filter to exclude any JS script from being minified:

    add_filter( 'sgo_js_minify_exclude', 'js_minify_exclude' );
    function js_minify_exclude( $exclude_list ) {
    $exclude_list[] = 'script-handle';
    $exclude_list[] = 'script-handle-2';

    return $exclude_list;
    }

    More information about all custom filters we’ve implemented can be found here:
    https://www.siteground.com/tutorials/wordpress/speed-optimizer/custom-filters/#plugin-compatibility

    Of course, you’re also more than welcome to get in touch with our support team via the Help Desk in your SiteGround account, and we’ll gladly review the matter further.

    Best Regards,
    Svetoslav Vasev

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.