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

JSX Transformer Done Event #1977

Closed
jamesyu opened this issue Aug 2, 2014 · 2 comments
Closed

JSX Transformer Done Event #1977

jamesyu opened this issue Aug 2, 2014 · 2 comments

Comments

@jamesyu
Copy link

jamesyu commented Aug 2, 2014

It would be nice if the JSX transformer had an event that you could listen for in order to know when all scripts have been done processing. In development mode, my pattern is to treat external js files as libraries and call them from HTML templates in script blocks. However, if I do this with JSX, I don't know when they've been processed yet.

@syranide
Copy link
Contributor

syranide commented Aug 2, 2014

I recommend that you not use JSXTransformer for any serious development, if you can, use the jsx --watch tool instead. Anyway, you're not wrong, although I imagine that the best solution would be to override the DOMContentLoaded event instead (if possible... it just might be) so that you do not require special code when JSXTransformer is used.

But otherwise, it seems like a DOMAndJSXContentLoaded-event should be added, yep.

@zpao
Copy link
Member

zpao commented Aug 5, 2014

Let's move any discussion if there is any into #1913

@zpao zpao closed this as completed Aug 5, 2014
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

3 participants