How to detect if javascript files are loaded
<p>Is there a event that fires when javascript files are loaded. The problem occured because YSlow recoment to move javascript files in bottom of the page. This means that 
$(document).ready(function1) is fired before js file that contains code of function1 event is loaded.</p>

<p>How to avoid this kind of situation?</p>
