Skip to content

Is it possible to load the script on window or dom load? #13

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

Open
shri3k opened this issue Mar 17, 2017 · 0 comments
Open

Is it possible to load the script on window or dom load? #13

shri3k opened this issue Mar 17, 2017 · 0 comments

Comments

@shri3k
Copy link

shri3k commented Mar 17, 2017

Hi, this is more of a question than an issue but I was wondering if it was possible to load the script after the window has loaded or DOM has loaded on the page.

I technically can put an event handler (like DOM, window loaded etc) in componentDidMount on my component but this kinda becomes an issue when we're using stateless components.
It'd be nice if react-async-script-loader actually supported this natively. Any thoughts?

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