Open Kickball opened 9 years ago
I have the same issue. Just noticed that in my Network tab this morning. Would really prefer to manually set when the script is loaded.
I fixed it with this pull request : https://github.com/tyler-johnson/stripe-meteor/pull/43
+1 Because the tag is in the head it blocks the page and Stripe can sometimes take several seconds to serve the request.
+1
+1
With 1.3 it's easy to load stripe on the server using Npm so then all this package is doing is editing the head to load stripe.js
& checkout.js
. If you want to bring one or both of these calls into a particular template and have control over when and how they load you can use something like $.getScript()
inside the onRendered()
callback. See: https://forums.meteor.com/t/how-to-load-stripe-js-only-for-the-pages-where-its-used/21286/13
Currently when stripe is installed as a package it is loaded on all pages for the site.
Is there a way to manually set which pages stripe is loaded on?
It is causing 400 ms of extra latency per page load.