title: How to tell whether the $(window).load()/window.onload event has already fired?
body: <p>I have a script that is being inserted dynamically via another script. The code in that script is wrapped inside the <code>$(window).load()</code> event because it requires the images on the page to have all loaded. In some browsers it works fine, but in others it seems not to fire because the page has already finished loading by the time the code is run.</p>
  
  <p>Is there any way to check and see whether the page has already finished loading - either via jQuery or JavaScript? (including images)</p>
  
  <p>In this situation, I don't have access to the <code>onload</code> event of the original document (aside from altering it via the loaded script - but that would seem to present the same problem).</p>
  
  <p>Any ideas/solutions/advice would be greatly appreciated! </p>