• Resolved ms100

    (@ms100)


    Hi support,

    Is it ok to load the plugin JS and CSS only on the checkout page?

    It will reduce a little (like 8kb) page load I think.

    I do not use any payment methods like Apple pay, on productpages.

    Can I deqeue the JS and CSS?

    Thank you 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @ms100

    This is a bug in the latest version 7.3.5, and will be resolved with the next plugin update.
    In the meantime, the scripts should only be loaded on relevant pages with the previous version 7.3.4, at least as long as the WooCommerce Blocks feature plugin is not enabled.

    Kind regards,
    Niklas

    Thread Starter ms100

    (@ms100)

    Thanks for the reply @niklasinpsyde

    When customers can only pay on the checkout page, the checkout page would be the only relevant page for the plugin code to load right? 🙂

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    The plugin also provides express checkout options for PayPal (digital products only) or Apple Pay on the single product and Cart pages.

    But yes, the scripts generally should only be loaded on relevant pages. The bug in the latest version 7.3.5 I mentioned results in the Block Checkout scripts being loaded on every page.
    These are only needed on the actual Block Checkout (not even the shortcode Checkout), and this behavior has been improved in the next update.

    A beta version of the next update is expected on GitHub in the coming days, with an official release about a week later.

    Kind regards,
    Niklas

    Thread Starter ms100

    (@ms100)

    Thanks again @niklasinpsyde have a great evening!

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

The topic ‘Load plugin on checkout page only’ is closed to new replies.