#red_payment-element-load-event
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1432422440708870255
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- red_api, 2 hours ago, 26 messages
can we chat on the previous thread?
No. We close threads due to inactivity after ~30-45 minutes or if we get an affirmative that the situations was resolved. We don't re open threads.
I will be happy to discuss your issue here if you can provide me a clear summary of the state of your question.
I can but I want you to summarize where you are at currently as well
I can repeat here if youโd like
The thread ended with my colleague asking you to add some logs to your Stripe.JS
Remove some
it's the same situation - the ready event fires, and then the page finishes loading
it's support to fire when it's finished loading?
listener for paymentElement ready event will show this console message: "in paymentElementReady with event: {"elementType":"payment"}"
The ready event should fire when
Triggered when the Element is fully rendered and methods on the instance, like element.focus() and element.update(), can be called.
and then "payments:441 made topDiv visible" when it's made visible
right - it's not fully rendered as you can see
or I can record a video if you'd prefer?
Videos are not helpful, no
Oh boy. I have to fill all this out for every refresh?
every time you want to try it, yes
it's integrated with GoHighLevel so I don't have control over that
And what is the sequence of events logged in the console that indicates this is a problem?
you will see the message that the ready event fires - and the box is made visible
and yet the Element continues to render after it
my goal is: show Loading... while Stripe UI is loading in visible:hidden div, and then when ready event is fired, make it visible, to show it fully rendered for the user
I do see a brief flicker (~0.3s) but I take your meaning. Let me see if I can rerpo on my test integration
ok thanks!
I see a lot longer on my side. And even long for card / bank / cashapp images to finish loading
Okay for me it's pretty instant. I'll try throttling to 3G
huh, I'm on gigabit hardwired ethernet
let me try in a different browser (I'm on chrome)
Okay I still see the instant rendering (I'm on Chrome too) but the logos took longer (we load those separately)
huh - it is super fast on safari!
that's so weird
but I think it's working as designed on your side!
thanks for the help
Happy to stumble along with you! All the layers between what we code and what the browser renders can make this pretty tricky to debug
yep, I spent a long time on it last night while you guys were offline
I'll try and figure out my chrome deal - but good to hear it's working for you in chrome
Yeah, like I said, I do see the lag for the icons when I throttle my connection but unfortunately I don't think we can avoid that as they load separately from the Payment Element itself.
that's all good. Thanks again!
Happy to shed what ๐ก I can ๐