Title: Stripe Javascript/scripts to exclude from Javascript Delay
Last modified: January 30, 2025

---

# Stripe Javascript/scripts to exclude from Javascript Delay

 *  Resolved [Swapot](https://wordpress.org/support/users/swapot/)
 * (@swapot)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/stripe-javascript-scripts-to-exclude-from-javascript-delay/)
 * 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](https://wordpress.org/support/users/babylon1999/)
 * (@babylon1999)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/stripe-javascript-scripts-to-exclude-from-javascript-delay/#post-18277068)
 * Hello [@swapot](https://wordpress.org/support/users/swapot/)!
   I think the most
   important one is `https://js.stripe.com/v3/`.
 *  Thread Starter [Swapot](https://wordpress.org/support/users/swapot/)
 * (@swapot)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/stripe-javascript-scripts-to-exclude-from-javascript-delay/#post-18277074)
 * OK thanks [@babylon1999](https://wordpress.org/support/users/babylon1999/). I’ll
   try that.
 *  [Moses M. (woo-hc)](https://wordpress.org/support/users/mosesmedh/)
 * (@mosesmedh)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/stripe-javascript-scripts-to-exclude-from-javascript-delay/#post-18278707)
 * Hi [@babylon1999](https://wordpress.org/support/users/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](https://wordpress.org/support/users/swapot/)
 * (@swapot)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/stripe-javascript-scripts-to-exclude-from-javascript-delay/#post-18323733)
 * Hey [@mosesmedh](https://wordpress.org/support/users/mosesmedh/) ,
 * Thank you for your reply. [@babylon1999](https://wordpress.org/support/users/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.
 *  [Moses M. (woo-hc)](https://wordpress.org/support/users/mosesmedh/)
 * (@mosesmedh)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/stripe-javascript-scripts-to-exclude-from-javascript-delay/#post-18324341)
 * Hi [@swapot](https://wordpress.org/support/users/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](https://wordpress.org/support/users/swapot/)
 * (@swapot)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/stripe-javascript-scripts-to-exclude-from-javascript-delay/#post-18332401)
 * Thank you [@mosesmedh](https://wordpress.org/support/users/mosesmedh/) . I added
   both. Appreciate the help.
 *  [Zee](https://wordpress.org/support/users/doublezed2/)
 * (@doublezed2)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/stripe-javascript-scripts-to-exclude-from-javascript-delay/#post-18334314)
 * Hello [swapot](https://wordpress.org/support/users/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)

The topic ‘Stripe Javascript/scripts to exclude from Javascript Delay’ is closed
to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [WordPress](https://wordpress.org/support/topic-tag/wordpress/)

 * 7 replies
 * 4 participants
 * Last reply from: [Zee](https://wordpress.org/support/users/doublezed2/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/stripe-javascript-scripts-to-exclude-from-javascript-delay/#post-18334314)
 * Status: resolved