[jQuery] Re: jQuery.ready after document has loaded

2009-08-31 Thread Psionides

On Aug 13, 12:00 am, John Resig jere...@gmail.com wrote:
 We just landed some code in the latest nightly versions of jQuery to
 auto-detect if the page has already loaded. You can try it 
 here:http://code.jquery.com/jquery-nightly.js

 --John

FYI, it seems this doesn't work in Firefox - apparently Firefox
doesn't support document.readyState (it will support it in 3.6)...

JS


[jQuery] Re: jQuery.ready after document has loaded

2009-08-12 Thread John Resig
We just landed some code in the latest nightly versions of jQuery to
auto-detect if the page has already loaded. You can try it here:
http://code.jquery.com/jquery-nightly.js

--John


On Wed, Aug 12, 2009 at 5:14 PM, ujamu danab1...@gmail.com wrote:


 I have developed a FF extension that loads a few JavaScript files
 (one of which is jQuery) and attaches them to any given page being
 viewed by the user.
 The loading of the js files can ether happen during or after the web
 page had been loaded into the browser.
 Obviously, once the js files get loaded, I want to start doing some
 stuff and I wanted to use the jQuery.ready method to determine when
 the js code can start performing whatever needs to be done. However,
 it does not seem to get fired if the extension only starts loading
 the
 js files after the web page has already been fully loaded. Generally,
 there does not seem to be a method in FF that tells me if the web
 page
 is loaded or not but rather, only an event that can get fired upon
 page load.
 Am I missing something? if not, is there a workaround?