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

Automatic detection of DOMContentReady #26

Closed
oyvindkinsey opened this Issue Aug 2, 2010 · 1 comment

Comments

Projects
None yet
1 participant
@oyvindkinsey
Copy link
Owner

oyvindkinsey commented Aug 2, 2010

easyXDM should in order to not generate errors due to trying to initialize easyXDM objects prior to the DOM being ready, delay all DOM operations until the DOMContentReady event has occurred.

easyXDM should also expose a method whenReady(fn [,context]) for enqueuing functions for execution once the DOM is ready.

@oyvindkinsey

This comment has been minimized.

Copy link
Owner

oyvindkinsey commented Aug 2, 2010

This is now implemented.
This means that you no longer need to wrap your initialization code in window.onload = function(){....}; blocks, as all the DOM operations will be deferred until the DOM is ready.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment