react-square-web-payments-sdk
react-square-web-payments-sdk copied to clipboard
Disable scriptSrc
Describe the bug
I started using this module to help with migration to square.js. It seems really slow now. Just wondering if part of the problem is loading the script when the credit card feature is needed. I'd like to load the script myself and disable the PaymentForm from managing it.
Note that I tried using the loading feature in CreditCard, but I couldn't get it to ever enable the button.
Your Example Website or App
Not public
Steps to Reproduce the Bug or Issue
Doesn't seem relevant. Just imaging that the square code is already loaded.
Expected behavior
I expected the credit card form to load quickly, but instead I see an empty credit card section for several seconds. Not sure why it's slow, but guessing that square.js isn't preloaded - it waits until the form is needed.
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: Firefox
Additional context
No response