what exactly document-ready means in jquery
问题 Let us say I have a HTML page that contains a javascript file: The base.js is like this: $(document).ready(function () { obj.init(); } // .............. var obj = {...}; Surprisingly, sometimes (not all the time) Firebug shows me the undefined error on obj.init() call! My understanding is that document ready means all html elements, including images, javascript files downloaded and executed(?). I believe in order to find the root cause of this error, we need understand what exactly the