Support

Home Forums Event Espresso Premium Stripe Script on Every Page

Stripe Script on Every Page

Posted: December 15, 2022 at 9:00 pm


Bryce Jacobson

December 15, 2022 at 9:00 pm

I was running some speed tests on my website and noticed that the js.stripe.com/v3 script is being added to every page of the website even if nothing is on the page dealing with a membership checkout

Is this in error, is there anyway around it?

https://www.adfedcentral.com/


Tony

  • Support Staff

December 16, 2022 at 4:23 am

Hi there,

The above is not an error, it is actually Stripe’s recommended best practice for fraud prevention, see HERE.


Bryce Jacobson

December 16, 2022 at 7:43 am

Thanks for the information. Makes sense. I see that the script is in the footer and there is a dns-prefetch for it. Thoughts on making it async or defer like they mention?

You can also load Stripe.js using the async or defer attribute on the script tag. Note, however, that with asynchronous loading any API calls will have to be made only after the script execution has finished.

The support post ‘Stripe Script on Every Page’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso