stripe-meteor icon indicating copy to clipboard operation
stripe-meteor copied to clipboard

Prevent loading of Stripe dependencies on all pages

Open MendelYev opened this issue 9 years ago • 2 comments

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...

MendelYev avatar Oct 20 '15 16:10 MendelYev

Are you going to update this one ?

okpatil4u avatar Dec 09 '15 01:12 okpatil4u

+1, updating this?

elie222 avatar Mar 31 '16 20:03 elie222