• Resolved leekane

    (@leekane)


    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

    (@skyvergesteve)

    Hey @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

    (@leekane)

    Thanks Steve for the explanation, that’s all good.

    Kind Regards

    Lee

    Steve

    (@skyvergesteve)

    Hey @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 www.ads-software.com page by first logging into your www.ads-software.com account then adding a new review here? I’d really appreciate it!

    Thanks so much!
    Steve
    SkyVerge

    Steve

    (@skyvergesteve)

    Hey @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 for more information and create a new thread 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.