Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎨 Optimized loading stripe scripts only when it is needed (#11499)
closes #11463 - Ghost used to always load stripe.js into the frontend of all pages when memberships are enabled, even when Stripe isn't configured / memberships to a page are free. This changes Ghost's behaviour to only load stripe.js when both stripe API tokens are present & not empty (the quickest way to verify that Stripe is fully configured & operational on a blog). - Needs a follow-up cleanup removing confusing/not functional `isPaymentConfigured` method from members service
- Loading branch information