title: How to detect if javascript files are loaded?
body: <p>Is there an event that fires when JavaScript files are loaded?  The problem came up because YSlow recommends to move JavaScript files to the bottom of the page. This means that 
  <code>$(document).ready(function1)</code> is fired before the js file that contains the code for <code>function1</code> is loaded.</p>
  
  <p>How to avoid this kind of situation?</p>