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
$(document).ready(function1)
is fired before the js file that contains the code for function1
is loaded.
How to avoid this kind of situation?