• Resolved feta1999

    (@feta1999)


    Hi,

    Stripe JS runs on every page and thus slows down the page loading time a lot.

    We use a CheckoutWC float cart on the site.

    How can we solve it so that only the checkout and cart pages run stripe JS?

    Waiting for your reply.

    Best regards,

    Tamas

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @feta1999

    If you look at the Apple Pay and Google Pay Settings pages, you will see you can control what pages the payment buttons load. If you have those payment buttons configured to show in your mini-cart, then naturally the js.stripe.com script is going to load on every page that your mini-cart is rendered.

    The solution would be to configure the Payment Sections option so the payment buttons aren’t loaded in your mini-cart.

    Kind Regards

    Thread Starter feta1999

    (@feta1999)

    Hi,

    Thanks for your answer.

    I removed the mini cart option and that solved the problem. I also removed the product page from the display for both ApplePay and GooglePay, but I still see stripe js running on the product pages.

    What could this be?

    Thank you in advance.

    Best regards,

    Tamas

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @feta1999

    What could this be?

    I see you’re using caching on your site. What likely happened is your cache plugin combined the Stripe plugin’s product page scripts and so even though you have disabled the product page option, the scripts are still loading.

    A separate issue is you have several Javascript errors that appear on the product page and shop page of your site. If you click F12 > Console tab using Chrome you can see those errors.

    Kind Regards

    Thread Starter feta1999

    (@feta1999)

    Hi,

    We checked it and during the test it turned out that stripe js gets stuck with the Woocommerce Product Addons plugin. https://woocommerce.com/products/product-add-ons/

    We use this plugin to select different color variations on product pages.

    Could you help me how to make this plugin work properly with your Stripe plugin and not run stripe js on the product pages?

    Waiting for your reply. Thank you in advance.

    Best regards,
    Tamas

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @feta1999

    ?it turned out that stripe js gets stuck with the Woocommerce Product Addons plugin

    Reviewing the code, I think the issue is that the js.stripe.com script is a dependency for one of the plugin scripts that loads on the product page. With the product addon plugin, is there a setting that determines if it’s enabled or not on the products page?

    To conditionally load the Stripe scripts, the plugin would need to know when addons are enabled or not.

    Can you create a support ticket here and share the version of the product addon plugin that you’re using?

    Kind Regards

    Thread Starter feta1999

    (@feta1999)

    Hi,

    I write an email to you a few minutes ago with the same summary.

    Waiting for your reply. Thank you in advance.

    Plugin Author Payment Plugins

    (@mrclayton)

    Version 3.3.61 released.

    Thread Starter feta1999

    (@feta1999)

    Hi,

    I updated it and it works well now. Thank you.

    Have a nice day.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Stripe JS Scripts run on EVERY PAGE, Destroys Page Load Time’ is closed to new replies.