the jquery version waits until the page is completely loaded, which
the body onload= event may not do depending on the circumstances.
i don't know if this would work, but if you inserted an img or
link at the very end of your document with an onload attribute it
might be more thorough.
On May
You can use window.onload, it will have a slight delay but will work
consistently.
jQuery ready() uses the DOMContentReady event when it's supported, and
some assorted techniques to find out if the DOM has loaded in other
browsers, take a look at the source code.
-- ricardo
On May 21, 10:25
There are other non-library solutions to domready out there:
One of the first:
http://dean.edwards.name/weblog/2006/06/again/
or taken from Mootools:
http://snipplr.com/view/6029/domreadyjs/
etc.
Just Google domready, and as Richard said, look at jQuery's source.
On May 21, 6:25 pm, Michael
3 matches
Mail list logo