How to onload two javascript files?
<p>I have two different javascripts. I would like to start a function only after both of those js files or scripts have loaded, because they need to access each other's functions and/or variables.</p>

<p>I don't know which one will load first. </p>

<p>What is the proper way of doing it?</p>

<p>NOTE: one of the scripts (A) loads data asynchronously and the script (B) needs to wait till all the data is loaded and started before it can continue (ex youtube video is loaded from (A) and needs to start playing before (B) can execute)</p>
