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

Allow choice of when to begin rendering modal #13

Open
jmpresso opened this issue Jul 19, 2018 · 0 comments
Open

Allow choice of when to begin rendering modal #13

jmpresso opened this issue Jul 19, 2018 · 0 comments

Comments

@jmpresso
Copy link

Currently, the modal begins to render on DOMContentLoaded. We have some code that wants to use the modal, but the modal won't be immediately launched. As so, we don't want to bother rendering it out initially, so we load the JavaScript with 'async'. This means the script may be loaded after the DomContentLoaded event is fired. As such, we'd prefer to have it run on the window.load event.

Can we have the option to choose to render it on the load event instead of DOMContentLoaded, or just disable the initial render and let us call a render function manually on load?

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

No branches or pull requests

1 participant