How can I call a function at the very end of document.ready

Posted by Umair on Stack Overflow See other posts from Stack Overflow or by Umair
Published on 2010-03-18T10:57:09Z Indexed on 2010/03/18 11:01 UTC
Read the original article Hit count: 396

Filed under:
|

I have multiple document.ready functions on a page and I want a function to be called when all my document.ready functions have been executed. I simply want the function to be called at the very end, after all other document.ready functions have executed. An example of this could be that each document.ready function increments a global variable when it has been executed, and the last function needs to check the value of that variable at the very end.

Any ideas ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript