• Resolved haywyre

    (@haywyre)


    If you activate Defer Render-blocking JS, it prevents the google address autocomplete function from working in the checkout, specifically Aerocheckout. It will not allow me to exclude the JS file. Does this only work for the home page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hey there @haywyre,

    You can exclude a specific script using the Exclude from Loading JS Files Asynchronously when the Defer Render-blocking js is enabled. Select the specific script from the dropdown menu and it will be excluded.

    Kind regards,
    Stoyan

    Thread Starter haywyre

    (@haywyre)

    Thanks, Stoyan. The JS file does not appear in the dropdown (woofunnels-aero-checkout/assets/js/checkout.min.js)

    Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hey there @haywyre,

    If the script is not appearing in the dropdown, you can use the following filter we’ve provided:

    add_filter( 'sgo_js_async_exclude', 'js_async_exclude' );
    function js_async_exclude( $exclude_list ) {
        $exclude_list[] = 'script-handle';
        $exclude_list[] = 'script-handle-2';
    
        return $exclude_list;
    }

    Here you can add one or multiple excludes by adding the script handle just like the example.

    Kind regards,
    Stoyan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Defer Render-blocking JS breaks Address Autocomplete’ is closed to new replies.