Skip to content

Comment on Faster than jQuery(document).ready() - Wait Until Existsparent

Comments

1) The dom state is that everything inside the HTML element that you were waiting for already exists when the function is executed.

2) When i am writing javascript is very common for me to use the global object (window) as the context; so in my case is not a good idea to use the HTML element as context by default.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.