Thanks to visit codestin.com
Credit goes to github.com

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 7 times, most recently from 17b14c2 to 0c479dd Compare September 12, 2025 04:04
@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
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