jQuery isn't a black box - it is Open Source. Just get the jQuery source code and copy the bits you need. Search for "ready" and you'll find the code.
Get the latest code from svn, not one of the released versions - there were some recent bug fixes in the IE version of the code that you want. Keep John's copyright notice on the code you copy, and you're good to go. Or, if there is an issue with using the code directly, you can still read it to understand how it works and write your own version. -Mike > From: Jim Spath > > I am working on a project where using jQuery's > $(document).ready() would be extremely useful, but > unfortunately I cannot use jQuery. > > I found this page on determining when a document's DOM is ready: > > http://www.javascriptkit.com/dhtmltutors/domready.shtml > > Is this how jQuery does it? > > Thanks!