Saturday, December 5, 2009

Re: [jQuery] Re: Can I use "$(document).ready(function(){ " in the same page more than a once time in the same page

thanks

2009/12/4 Michael Geary <mg@mg.to>
It really makes little difference at all. jQuery makes an array of all your "ready" callbacks, and when the document is ready it loops through that array and calls each function. So other than that tiny bit of overhead, the net effect is exactly the same whether you put all the code in one ready function or have several different ones.

If there is more than one, they will be called in the same order that the $(document).ready() calls were executed.

-Mike


On Fri, Dec 4, 2009 at 7:35 AM, coolf <jm.neutron@gmail.com> wrote:
ok, thanks for the response.
But what is the best, is it good to have more than a "documen.ready" ?
it doesn't bring problems?

On 4 dic, 11:33, Andreas Möller <localhe...@l8m.de> wrote:
> > Hello i'm new here, Is it posible?
>
> Yes, it is.
>
> Best regards,
>
> Andreas


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate