-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Explicitly fire ready() #178
Comments
I may not be following you.
IOW, |
Let me give more context. I'm trying to make a ui-less components from js libraries that I don't have control over & that have their own api-ready callback. Take the Google+ JS library - plusone.js. When's it's all set up, it calls a callback function it grabs from the url: https://apis.google.com/js/client:plusone.js?onload=plusOnloadHandler What I'd like to do is have If not, do you have better recommendation on how to handle ui-less JS includes? |
I think you want something like this: |
Thanks!, I'll give that a spin. I was going to add comments on the gist but it might be more useful for others to address them here:
All of this is rather dizzying and I wish there was an opinionated route - coming from require.js and/or Angular's DI, I'd love to hear your thoughts! |
In these senses, it's completely different from onload, domcontentready, etc. We realize the name is confusing, we may have to change it. Imagine it's called
Yes, but when
The array handles the case where you make N instances of your element before
I don't really understand the question, probably we will need more examples. :) |
Closing since this is a per-element issue. |
I think it makes sense to allow us to explicitly for ready(). There will be times when a component is still bootstrapping the js even after the HTML is rendered, like if it loads json configs async. What I have to end up doing is writing a second custom event reallyReady().
The text was updated successfully, but these errors were encountered: