#usmseong_29857

1 messages · Page 1 of 1 (latest)

grave rampartBOT
#

Hello! We'll be with you shortly. 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.

minor hill
#

Happy to help. Have you already put timers in your code to see what specifically the delay is? Like if you grab the time from when the button is initially pressed and then to when you are making the Stripe call to load this element, is that pretty soon after each other or is there a gap?

pliant ruin
#

hello, it varies. sometimes it's super fast so it's kinda accepable but sometimes depending on my wifi it's not okay there's like 1~2 seconds of delay which I want to improve on..

minor hill
#

Interesting, and it looks like it is only on the initial load.

#

Can you show me the code for what happens when that button is clicked?

#

Like what is that sidebar waiting on before it shows up?

pliant ruin
#

sorry i'm not sure what part of the code you'd like to check.

#

I have a feeling this happens when there's ExpressCheckoutElement in any modal

#

and as you click the modal, the modal loads ExpressCheckoutElement, which takes some time

#

I'd like to load as the page loads so that by the time I open the modal, ExpressCheckoutElement is already there

#

without any delay

minor hill
#

Right, but that depends on what is actually happening on your page and unfortunately I don't have any insights in to that from your video. Like it may be waiting for Stripe to load but I've also seen users make a networked request before calling anything Stripe-wise and that was what the delay was for

#

So I'd reccommend first putting in quick pieces of code to log the time at each step after the button is clicked to see how long each thing takes.

pliant ruin
#

I see. I'm not making any network requests prior to load the modal component that has ExpressCheckoutElement. Is there any resources on the web I can reference by any chance?

minor hill
#

For which part? Getting the time for each of these? For javascript I think you can just call const timestamp = currentDate.getTime();

#

Like typically you'd call that at the start and then at later points and when the process is over calculate later time stamps minus the starting time to see when they happend

pliant ruin
#

sorry , i should have been more clear not the timer part

#

any reference where ExressCheckoutElement is in some sort of a modal or sub-page

minor hill
#

Not finding docs specific to that unfortunately

pliant ruin
#

how about this case where I have A,B,C pages
and each page has ExpressCheckoutElement for some reason. and if I navigate from A->B->C pages, ExpressCheckoutElement will not appear instantly as it takes time to load on each page, right? how do I load the button right away?

#

if it takes time to load it on page A makes sense however since I've seen the button and navigated to page B,C, i expect immediate load time not even less than a second

minor hill
#

I don't think there is a way to speed up that load on each page but will double check

#

Though again, with this specific page, we have not confirmed that this is the issue yet. It definitely could be, but it is important to confirm first

#

Not seeing anything for faster loading unfortunately, we try to serve the element as fast as possible and I'm not seeing settings that would directly tell Stripe to load it differently or something.