• Resolved mailtobb

    (@mailtobb)


    Hi,
    is just saw that js.stripe.com is loaded also on product pages which makes the website a little bit slower. Wouldn’t be it enough to load the stripe functions on the checkout page?
    Thanks
    Bastian

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Stripe functions are loaded on product pages when working with the payment request buttons – that’s for Apple and Google Pay which are meant to show up directly on the product page.

    If you don’t want to use this option, you can remove it by disabling the option under WooCommerce > Settings > Payments > Stripe > Payment Request Buttons. At that point, the stripe.js file won’t be loaded on product pages.

    Thread Starter mailtobb

    (@mailtobb)

    Thanks so much for you help Hannah!
    I did that, but it still loads stripe.js on product pages (i.e. /shop/beyers-oil-bartoel-eisenkraut/). I cleared all caches.
    Any other things I could try?

    • This reply was modified 5 years, 2 months ago by Jan Dembowski.
    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @mailtobb,

    Looking for us today there is no file I could find called stripe.js and the only reference I could find was for an externally loaded URL called js.stripe.com

    Running some comparison tests for us today I searched a product pages sources code with our free Stripe plugin enabled and the js.stripe.com is not loading on the page.

    Image Link: https://cloudup.com/cqY_utFJ4zX

    The only instance where I could get the js.stripe.com file to load on product pages was by enabling the ApplePay and GooglePay request buttons referenced by Hannah.

    Image Link: https://cloudup.com/cEINpejT9Ja

    Looking at the source code of your site I noticed js.stripe.com, your page, however, it seems like your pages are minimized and also possibly cached.

    Image Link: https://cloudup.com/cjCJFXxUZH4

    What your experiencing is not directly related to stripe as if you have deactivated WooCommerce > Settings > Payments > Stripe > Payment Request Buttons no JS for Stripe will load on product pages. It’s most likely due to a site optimization plugin of some kind you have activated.

    I hope this helps.

    Thread Starter mailtobb

    (@mailtobb)

    Ok, thanks so much! It strange indeed, I will as you suggested!
    Thanks
    Bastian

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Website slower because Stripe JS on product pages’ is closed to new replies.