• Resolved rifatspir

    (@rifatspir)


    I want to exclude everything that applied via sg optimizer in checkout/cart page.

    How do I do that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Vladimir Trandev

    (@vtrandev)

    Hello @rifatspir,

    If you would like to exclude certain parts of your website from being cached, you can use our “Exclude URLs from Caching” option. For more information, please check our comprehensive tutorial at:

    https://www.siteground.com/tutorials/wordpress/sg-optimizer/supercacher/

    Best Regards,
    Vladimir Trandev

    Thread Starter rifatspir

    (@rifatspir)

    I want to Exclude js from Deferral of Render-blocking. I cant find the scripts which causing the issue.

    Plugin Support Delyan Delov

    (@delyandelov)

    Hello @rifatspir,

    If the problematic JS script is not listed in the drop-down menu in the Exclude from Deferral of Render-blocking JS section of the SG Optimizer plugin, you can use the following filter we have designed for that purpose:

    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;
    }

    where the script-handle should be replaced with the JS script handle. The filter can be added to the functions.php file of your active theme.

    Regards,
    Delyan Delov

    Thread Starter rifatspir

    (@rifatspir)

    js fie located here

    /wp-content/plugins/arg-multistep-checkout/js/jquery.validationEngine-en.js?ver=v2.6.2

    So it will be like this?

    add_filter( ‘sgo_js_async_exclude’, ‘js_async_exclude’ );
    function js_async_exclude( $exclude_list ) {
    $exclude_list[] = ‘jquery.validationEngine-en’;
    return $exclude_list;
    }

    Plugin Support Delyan Delov

    (@delyandelov)

    I am afraid that jquery.validationEngine-en is not the handle but the name of the script. I will be happy to provide you with the handle for this specific script if you specify the exact domain you are working with.

    Regards,
    Delyan Delov

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude checkout and cart page’ is closed to new replies.