Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://js.stripe.com/v3/ is taking too much time to load when I start the flutter web application with Stripe Payment elements in it #2076

Open
harunr-plateron opened this issue Feb 14, 2025 · 2 comments
Labels
Awaiting response Awaiting response from the issuer needs triage Needs triage

Comments

@harunr-plateron
Copy link

Describe the bug
When initializing a Flutter web application that integrates Stripe Payment Elements, the script https://js.stripe.com/v3/ is taking an unusually long time to load.

To Reproduce
Steps to reproduce the behavior:

  1. Load into the Web application
  2. Taking around 6 to 8 seconds
  3. Then the Web application is loaded

Expected behavior
Ideally it should take less than 1 second

Smartphone / tablet

  • Chrome
  • Safari

Additional context
Video link for reference: https://plateron-my.sharepoint.com/:v:/g/personal/harunr_novatab_com/ETkCJYjaQuFFvNT5D0vmBREBqSJQJV6vK1skAGUGOxT_JA?nav=eyJyZWZlcnJhbEluZm8iOnsicmVmZXJyYWxBcHAiOiJPbmVEcml2ZUZvckJ1c2luZXNzIiwicmVmZXJyYWxBcHBQbGF0Zm9ybSI6IldlYiIsInJlZmVycmFsTW9kZSI6InZpZXciLCJyZWZlcnJhbFZpZXciOiJNeUZpbGVzTGlua0NvcHkifX0&e=G6e6FX

cURL reference:
curl 'https://js.stripe.com/v3/'
-X 'GET'
-H 'Origin: https://qa.onlineorders.novatab.com'
-H 'Accept: /'
-H 'Referer: https://qa.onlineorders.novatab.com/'
-H 'Sec-Fetch-Dest: script'
-H 'Sec-Fetch-Mode: cors'
-H 'Sec-Fetch-Site: cross-site'
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15'

@harunr-plateron harunr-plateron added the needs triage Needs triage label Feb 14, 2025
@remonh87
Copy link
Member

It looks like some network specific on your side because if I check on my computer I see that everything is loaded within an example time. Also if serving the Stripe/js library is slow I would recommend to reach out to Stripe customer support there.

Since we are not Stripe itself and there is little we can do here

@remonh87 remonh87 added the Awaiting response Awaiting response from the issuer label Feb 27, 2025
@harunr-plateron
Copy link
Author

I’ve tested this myself, and the issue occurs 2 out of 5 times. This is concerning for end users trying to log into our web application, as they see a white screen and end up closing the browser.

Is there anything we can do on our end to ensure this never happens?

I reached out to Stripe customer support, but they mentioned there was little they could do since this is a Flutter Stripe-specific issue. That’s why I’m reaching out to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting response Awaiting response from the issuer needs triage Needs triage
Projects
None yet
Development

No branches or pull requests

2 participants