What is an example of a time where you would want to use jquery.ready()
? When would you want the code to run before the DOM is fully constructed?
EDIT: Sorry! That's not what I meant! I meant the opposite! ready() indeed makes the code run after the DOM is constructed and quite often this is what you want. But I just learned about the function delegate() which I used to make a function be called on things that were later added into the DOM via ajax. For this I did not use ready(), just delegate() and I was trying to figure out why... I am very sorry for the confusion.