[jQuery] Re: Unexpected $(document).ready() behavior when jQuery is loaded after the page

2009-10-08 Thread Ryan Crumley
executed. If jQuery is present when the page loads then ready listeners are executed as expected. Ryan On Oct 8, 12:45 am, RobG wrote: > On Oct 8, 10:04 am, Ryan Crumley wrote: > > > I am experiencing unexpected behavior using $(document).ready() on a > > page where I inject jQuery

[jQuery] Re: Unexpected $(document).ready() behavior when jQuery is loaded after the page

2009-10-08 Thread Ryan Crumley
> But that's the issue, It's way way waaay too late at this point, as > the document was "ready" (and fired that event) once the HTML was sent > to the browser and ready for DOM manipulation, which was forever ago > at this point (right from the docs: "Binds a function to be executed > whenever th

[jQuery] Re: Unexpected $(document).ready() behavior when jQuery is loaded after the page

2009-10-07 Thread Ryan Crumley
. Ryan Crumley On Oct 7, 8:07 pm, MorningZ wrote: > While i don't know the answer to your strange issue... as > "document.ready" fires when, well, when the document is ready  i > do wonder: why the complexity? > > You aren't gaining anything except on t

[jQuery] Unexpected $(document).ready() behavior when jQuery is loaded after the page

2009-10-07 Thread Ryan Crumley
designed? Any suggested work arounds? The example at the bottom of the email illustrates the problem. The example is also available at: http://www.damagedsoftware.com/latejqueryready_test.html Thanks, Ryan Crumley function jqueryHasLoaded