Skip to content

Conversation

davidchin
Copy link
Contributor

@davidchin davidchin commented Sep 5, 2025

What/Why?

Lazy load payment strategies by importing them on demand. This is achieved by switching to @bigcommerce/checkout-sdk/essential, which excludes payment integration code from its distribution bundle. To initialise a payment method, we now explicitly import its corresponding integration strategy and pass it into the initialisation method. This allows us to effectively lazy load the integration code only when needed, instead of loading all strategies upfront when only a few are applicable.

Rollout/Rollback

Disable CHECKOUT-9450.lazy_load_payment_strategies experiment

Testing

See bigcommerce/checkout-sdk-js#2989

@davidchin davidchin force-pushed the lazy_strategies branch 8 times, most recently from 0c479dd to e472db6 Compare September 12, 2025 04:34
@davidchin davidchin marked this pull request as ready for review September 12, 2025 04:54
@davidchin davidchin requested review from a team as code owners September 12, 2025 04:54
@davidchin davidchin force-pushed the lazy_strategies branch 2 times, most recently from 6c28559 to a34cba4 Compare September 22, 2025 05:33
@davidchin davidchin force-pushed the lazy_strategies branch 2 times, most recently from ab6e88f to 6ce1da0 Compare September 22, 2025 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant