• Resolved yeraygarcia

    (@yeraygarcia)


    Stripe loads unnecessarily on all the pages of the website. Whenever I load any page of my website in my internet browser I can read at the bottom of the page “waiting for m.stripe.com”. All the scripts related to Stripe should load only on the donations page, not on all the pages of the website.
    It is making an unnecessary use of the resources and it makes the website take a longer amount of time to fully load.
    Reading on the internet I have found out that some people add the following snippet code to allow Stripe only to load on the pages where it is needed:
    add_filter( ‘wc_stripe_load_scripts_on_product_page_when_prbs_disabled’, ‘__return_false’ );
    add_filter( ‘wc_stripe_load_scripts_on_cart_page_when_prbs_disabled’, ‘__return_false’ );
    However, that piece of code is intended to be used by people who have Woocommerce installed, not GiveWP.
    I would like to know if GiveWP has a similar solution, or any other way to prevent Stripe from loading on every single page

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Stripe loading on all pages’ is closed to new replies.