If you put the jquery reference in the <head> and your script after the
close of the </body> tag, you don't need to use a $(document).ready.

The funny thing is, that's exactly the behavior that $(document).ready is
designed to simulate.

JK

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fetis
Sent: Monday, March 03, 2008 1:55 PM
To: jQuery (English)
Subject: [jQuery] Re: Using jQuery without ready()


On Mar 3, 5:24 am, the_woodsman <[EMAIL PROTECTED]> wrote:
> To my knowledge, the main motivation for using ready and similar is
> that otherwise, you have to pay close attention to where your scripts
> are included in your page to ensure everything that the script relies
> on has already been added to that page.
> For example, if your script affects all .someClass elements, but not
> all of them have been added to the document before your script file
> was included, then the ones that came after the script block/include
> will be missed out.
>
Yes, I know about possible problems if some part of page is not
loaded.
I'm speaking about case when all HTML elements are loaded before
script running.
Have this scheme some hidden problems?

Reply via email to