• Resolved swapot

    (@swapot)


    Hi,

    I use FlyingPress for site speed optimizations and when I turn on its Delay Javascript feature it significantly speeds up the site, but it may break some payment functionality.

    What scripts of the Stripe Payments plugin do I need to exclude so that I can use this feature, but not break Stripe Payments?

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Saif

    (@babylon1999)

    Hello @swapot!

    I think the most important one is https://js.stripe.com/v3/.

    Thread Starter swapot

    (@swapot)

    OK thanks @babylon1999. I’ll try that.

    Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Hi @babylon1999,

    Hi,

    It’s great that you’re using FlyingPress to speed up your site! To ensure Stripe Payments continues to work properly while using the Delay Javascript feature, you’ll want to exclude certain Stripe-related scripts from being delayed.

    To exclude these, you can typically add the following script handles in the exclusion settings of FlyingPress:

    • https://js.stripe.com (or the specific Stripe version you’re using)
    • stripe-elements.js

    Check with FlyingPress’s documentation or support for where to add these exclusions. This way, the important Stripe scripts will load without delay, ensuring payments work properly while still benefiting from the site speed improvements.

    Let me know if you need any more details!

    Thread Starter swapot

    (@swapot)

    Hey @mosesmedh ,

    Thank you for your reply. @babylon1999 wrote to add https://js.stripe.com/v3/ and you wrote “(or the specific Stripe version you’re using)”.

    How do I know what specific version of Stripe I’m using? In the Developer’s section of Stripe website, it shows my API version is up-to-date: 2025-01-27.acacia

    I didn’t see anything that looked like v3 or v2 or ?

    Thanks.

    Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Hi @swapot,

    There are three versions of Stripe’s JavaScript SDK: v2, which is deprecated but may still appear in some scripts; v3, the current and modern version; and the latest version, sometimes referenced as https://js.stripe.com without a version number.

    I recommend adding https://js.stripe.com/v3/ and https://js.stripe.com to your site. Including https://js.stripe.com/v2 in the exclusion list won’t cause any issues—it will simply ensure that all Stripe-related scripts are excluded. However, adding just v3 and https://js.stripe.com should be enough.

    Thread Starter swapot

    (@swapot)

    Thank you @mosesmedh . I added both. Appreciate the help.

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello swapot,

    Thank you for your reply.

    We are glad to be of your assistance.

    Please don’t hesitate to contact us again if you have more questions or concerns.
    We are here to help ??

    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.