Title: Deactivate Stripe Java Script on Product Page
Last modified: October 5, 2023

---

# Deactivate Stripe Java Script on Product Page

 *  Resolved [basler](https://wordpress.org/support/users/basler/)
 * (@basler)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/deactivate-stripe-java-script-on-product-page/)
 * Hi Stripe Team
 * I have an issue in google pagespeed. Stripe is loading java script on my product
   page. But there is no fast checkoutfield on my product page. Is there a way to
   deactivate java script loading on my product page? My Pagespeed is slow since
   this java script is on.
 * Thanks for your help.
 * Regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdeactivate-stripe-java-script-on-product-page%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/deactivate-stripe-java-script-on-product-page/#post-17105345)
 * Hi there [@basler](https://wordpress.org/support/users/basler/) 👋
 * Thank you for contacting Woo support!
 * > Deactivate Stripe Java Script on Product Page
   > […]
   > Is there a way to deactivate java script loading on my product page? My Pagespeed
   > is slow since this java script is on.
 * Just to clarify, what version of the [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
   plugin is installed at your site?
 * You can try to use this: [https://wordpress.org/plugins/plugin-organizer/](https://wordpress.org/plugins/plugin-organizer/)–
   to selectively unload plugins on a per-page basis. With it, you can unload WooCommerce
   Stripe for single product pages (even for mobile only).
 * I hope this is helpful! Please let us know if you have any further questions 
   or concerns.
    -  This reply was modified 2 years, 8 months ago by [anastas10s](https://wordpress.org/support/users/anastas10s/).
      Reason: typo
 *  Thread Starter [basler](https://wordpress.org/support/users/basler/)
 * (@basler)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/deactivate-stripe-java-script-on-product-page/#post-17107755)
 * i got version 7.6.0 is there another way than just install a separate plugin?
 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/deactivate-stripe-java-script-on-product-page/#post-17110610)
 * Hi there [@basler](https://wordpress.org/support/users/basler/) 👋
 * > i got version 7.6.0 is there another way than just install a separate plugin?
 * Thank you for confirming the version installed at your site. Feel free to check
   out the [comment here](https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2065#issuecomment-977157365),
   and [here](https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2065#issuecomment-974383653),
   for approaching this using snippets, as an alternative.
 * I hope that helps. If you need more information, don’t hesitate to contact us.
   We are happy to help you!
 *  Thread Starter [basler](https://wordpress.org/support/users/basler/)
 * (@basler)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/deactivate-stripe-java-script-on-product-page/#post-17111521)
 * I tried with the filte as shown in the comment but u get this reply from my system:
 * **Snippet automatically deactivated due to an error on line 1:**
 * > Syntax error, unexpected end of file.
   >  add_filter( ‘wc_stripe_load_scripts_on_product_page_when_prbs_disabled’, ‘
   > __return_false’ )
 * could you please send me a snippet to just insert? Im not a programmer so i dont
   really understand much of this. Thanks in advance.
 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/deactivate-stripe-java-script-on-product-page/#post-17113280)
 * Hi there [@basler](https://wordpress.org/support/users/basler/) 👋
 * > Syntax error, unexpected end of file.
 * There appears to be a missing `;` at the end of the snippet, as the error message
   informs.
 * > could you please send me a snippet to just insert?
 * In order to make sure the snippet is copied correctly, feel free to [use the copy icon](https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2065#issuecomment-974383653),
   as showcased in the screenshot below:
 * ![](https://i0.wp.com/snipboard.io/Kgi2Vm.jpg?ssl=1)
 * Direct link to image: [https://snipboard.io/Kgi2Vm.jpg](https://snipboard.io/Kgi2Vm.jpg)
 * Again, as a recommendation, [Code Snippets](https://wordpress.org/plugins/code-snippets/)
   is an easy, clean and simple way to run code snippets on your site.
 * I hope this is helpful! Please let us know if you have any further questions 
   or concerns.
 *  Thread Starter [basler](https://wordpress.org/support/users/basler/)
 * (@basler)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/deactivate-stripe-java-script-on-product-page/#post-17114626)
 * this worked perfectly thank you very much 😀
 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/deactivate-stripe-java-script-on-product-page/#post-17116066)
 * > this worked perfectly thank you very much 😀
 * That’s great to hear [@basler](https://wordpress.org/support/users/basler/) !
   Thanks for letting us know. We’re happy to help, so please feel free to reach
   out to us again if you have any other questions. Cheers!

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

The topic ‘Deactivate Stripe Java Script on Product Page’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/deactivate-stripe-java-script-on-product-page/#post-17116066)
 * Status: resolved