Google Groups Home
Help | Sign in
Message from discussion Automatic $(document).ready
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Brian Miller  
View profile
 More options Feb 13 2007, 12:43 pm
From: "Brian Miller" <bjmil...@bway.net>
Date: Tue, 13 Feb 2007 12:43:09 -0500 (EST)
Local: Tues, Feb 13 2007 12:43 pm
Subject: Re: [Dev] Automatic $(document).ready
I disagree.  There are times, albeit rare ones, when you want to do some
things before the document is ready.  Any attempt to do so, however,
should console.log a warning, because that's not what you want most of the
time.

- Brian

> I have seen a few times that some are not putting code in
> $(document).ready, so are sometimes asking why their code does not
> work, e.g. you may see this
> ...
> <script type="text/javascript">
> $("#mydiv").slideDown();
> </script>
> </head>
> <body>
> <div id="mydiv">...

> Would it be possible for jQuery to delay execution if no element is
> matched and the page isn't fully loaded? That way #myDiv will slide
> down as expected.

> _______________________________________________
> dev mailing list
> d...@jquery.com
> http://jquery.com/mailman/listinfo/dev_jquery.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google