well, for example, if you want to do something to your DOM elements
(divs, links, lists etc) and do it as quickly as possible then you
could use document.ready.

if on the other hand you are not in a hurry to change the state of
your DOM elements or the functionality you want to achieve is less
important than the images on your page, then go for window.load.

so if your doing a gallery and your images and all are more important
than having a news ticker or form validation or something like that,
then window.load may be a better choice. it all depends on what you
want to achieve, thats why there are two different events to choose
from


On Apr 8, 12:24 am, coughlinsmyalias <[EMAIL PROTECTED]> wrote:
> Thank you! What do you think is better to use? And when would you use
> one compared to another?
>
> Thanks!
>
> Ryan
>
> ps, ill check out the docs you supplied
>
> On Apr 7, 4:55 pm, MorningZ <[EMAIL PROTECTED]> wrote:
>
> > Your browser window's "Load" event doesn't fire until the document is
> > fully loaded (images and all)
>
> > The "Ready" event fires when the DOM is ready
>
> > More verbose description of "Ready" is in the docs
>
> >http://docs.jquery.com/Events/ready

Reply via email to