Skip to main content
Question

Defer Stripe JS bundle from loading with main bundle

  • February 27, 2026
  • 2 replies
  • 22 views

Forum|alt.badge.img+8

Hello-
On my website, I am getting dinged on Time to Load for my page, one of the reasons being Stipe JS bundle loading.  
Since I am not using Stripe as a standalone, is there a possibility to defer loading of Stripe, as initiated from the `@revenuecat/purchases-js` NPM package?

Unless, I need the stripe JS bundle to be available related to checking subscription status; const customerInfo = await Purchases.getSharedInstance().getCustomerInfo(); but I would have thought that happens under the hood by pinging revenuecat instead of stripe directly?

Yes, I do need stripe for checkout - but what else would it need to be loaded as part of the main bundle for?  Any tips to load it later?

2 replies

cam
Forum|alt.badge.img+2
  • Helper
  • March 2, 2026

Hi!

 

This has been a concern raised by many users so there’s an attempt to delay importing the Stripe SDK. It’s still not out in production though, but it would give you the flexibility to handle Stripe as you wish.

 

Cam


Forum|alt.badge.img+8
  • Author
  • Helper
  • March 2, 2026

thanks Cam . I look forward to seeing this update go live :)