Dynamically loading javascript script file in widget
<p>Ive got a little problem. Ive created a widget which on loading it dynamically loads script file. Of course Im checking if this script was added into head tag. The problem occures when I put 2 and more widgets on the page. Its loading in this way:</p>

<p>step 1. 1st widget:
-check if there is js myLIB.js in head, no it isnt, it adds</p>

<p>step 2. 2st widget:
-check if there is js myLIB.js in head, yes it is, but its not completely loaded, so he throws an error becasuse theres is no function that he needs.</p>

<p>step 3. 1st widget:
-myLIB.js load is completed and it works contrary to 2nd widget</p>

<p>Does anyone have similar problem like me?</p>
