stripe-meteor
stripe-meteor copied to clipboard
Prevent loading of Stripe dependencies on all pages
stripe.js and checkout.js are loaded in all pages since they are imported in the header. Instead, you could use :
- the $.getScript() jQuery function in a Template.mytemplate.rendered block
- wait-on-lib package which allows to import your dependencies directly from iron-router
These are well explained there : http://www.meteorsnippets.com/blog/add-external-scripts-in-meteor
But this pull request will probably break the client tests...
Are you going to update this one ?
+1, updating this?