---------- Original Message ----------
To:  Jquery-en ([email protected])
From: Mika Tuupola ([EMAIL PROTECTED])
Subject: [jQuery] Re: question about $(document).ready
Date: 28/1/2008 13:40:49

On Jan 28, 2008, at 2:21 PM, Alexandre Plennevaux wrote:

> Am i correct to assume it means that document.ready means the html  
> page is loaded, but not other files, such as its css, img and js  
> dependencies?

Yes. If you are doing preloading it is better to bind to window.load.  
Otherwise preloading will make rest of the page feel sluggish.

$(window).bind('load', function() {
  /* preload stuff here */
});


--
Mika Tuupola
http://www.appelsiini.net/


thanks for the tip Mika,

Alex.


Reply via email to