I only need the client to have access to stripe.js on one page but if I use the popular
mrgalaxy:stripe package then this will include a call to stripe.js in the head of every route. This really isn’t ideal because it slows page load times.
Kadira’s package solved this by asychronously loading things but now, with 1.3.1, this package is no longer working.
What I want to do, to keep things clean, is
npm install stripe for the server side functions and then be able to include
stripe.js only on those routes that require it. Should be simple, no? Maybe I’m missing something really obvious - lots of people must be using Stripe in their app - but I’m not seeing it and would appreciate some advice.