Title: dequeue scripts
Last modified: October 16, 2020

---

# dequeue scripts

 *  Resolved [leekane](https://wordpress.org/support/users/leekane/)
 * (@leekane)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/dequeue-scripts-2/)
 * Hi, at present it appears that sv-wc-payment-gateway-payment-form js is loaded
   on the home page and pages not related to woocommerce ie blog page about page.
 * Would it be ok to dequeue this script so it only loads on the checkout page, 
   if say braintree was the only part of the plugin that is being used?
 * Many Thanks
 * plugin version 2.4.2

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

 *  [Steve](https://wordpress.org/support/users/skyvergesteve/)
 * (@skyvergesteve)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/dequeue-scripts-2/#post-13553134)
 * Hey [@leekane](https://wordpress.org/support/users/leekane/) ,
 * Thanks for contacting us about Braintree for WooCommerce! I am happy to help 
   out 🙂
 * We generally haven’t limited the gateway JavaScript for our gateway plugins to
   only load on specific pages, primarily to cover things like customized checkouts,
   One Page Checkout and other potential custom checkout solutions.
 * There is also Apple Pay, which is still a developer feature, but when enabled
   needs to load JavaScript on product pages & cart pages. As more gateways are 
   gaining features similar to that, we will most likely see more and more JavaScript
   loading outside of checkout.
 * So, basically, if you are running a standard WooCommerce Cart > Checkout solution,
   it is OK to only load the JavaScript on Checkout.
 * Can you please let me know if this helps out?
 * Cheers,
    Steve SkyVerge
 *  Thread Starter [leekane](https://wordpress.org/support/users/leekane/)
 * (@leekane)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/dequeue-scripts-2/#post-13556571)
 * Thanks Steve for the explanation, that’s all good.
 * Kind Regards
 * Lee
 *  [Steve](https://wordpress.org/support/users/skyvergesteve/)
 * (@skyvergesteve)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/dequeue-scripts-2/#post-13556967)
 * Hey [@leekane](https://wordpress.org/support/users/leekane/) ,
 * Glad to hear that the explanation was helpful. I’m going to mark this thread 
   as “solved” now, but if you run into any other questions or issues, please feel
   free to reply again to re-open it or create a follow up — we’re happy to help
   out. 🙂
 * Additionally, if you find a free moment, would you mind leaving us a review for
   the plugin on our WordPress.org page by [first logging into your WordPress.org account](https://login.wordpress.org/)
   then [adding a new review here](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/reviews/#new-post)?
   I’d really appreciate it!
 * Thanks so much!
    Steve SkyVerge
 *  [Steve](https://wordpress.org/support/users/skyvergesteve/)
 * (@skyvergesteve)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/dequeue-scripts-2/#post-13601341)
 * Hey [@leekane](https://wordpress.org/support/users/leekane/) ,
 * It has been a while since we heard from you, so I’m going to mark this topic 
   as resolved. If you’re still experiencing issues please [take a look at our documentation](https://docs.woocommerce.com/document/woocommerce-gateway-paypal-powered-by-braintree/)
   for more information and [create a new thread](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/#new-topic-0)
   if you have further questions.
 * Cheers,
    Steve SkyVerge

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

The topic ‘dequeue scripts’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-paypal-powered-by-braintree/assets/icon-
   256x256.png?rev=3234800)
 * [PayPal Enterprise Payments (formerly Braintree) for WooCommerce](https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/reviews/)

## Tags

 * [braintree](https://wordpress.org/support/topic-tag/braintree/)
 * [dequeue](https://wordpress.org/support/topic-tag/dequeue/)

 * 4 replies
 * 2 participants
 * Last reply from: [Steve](https://wordpress.org/support/users/skyvergesteve/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/dequeue-scripts-2/#post-13601341)
 * Status: resolved