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

Embed code inside modal not loading on page load #279

Open
brakai295 opened this issue Jul 27, 2020 · 0 comments · May be fixed by #293
Open

Embed code inside modal not loading on page load #279

brakai295 opened this issue Jul 27, 2020 · 0 comments · May be fixed by #293

Comments

@brakai295
Copy link

I'm using the standard modal implementation for an embed code for a payment form. That embed code is essentially a bit of JS that loads an iFrame.

Even though I have the modal with the embed code loaded on the same page, only when I click to open the modal does the embed code load. This causes a ~1 second delay and the modal jumps. Here's a quick video to show what I mean: https://dsh.re/2b0e9

I checked with the support team of payment provider and they said:

The embed code is actually loading on page load, but the modal library copies the element into the modal on each "click" so it has to reload the iframe each time you open the modal.

Is there a way around this? I've also tried implementing it via the ajax method, but it has the same result.

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 a pull request may close this issue.

1 participant