Today I learned that using inline anonymous function to add Javascript files to DOM will block the onload
event until the referenced script is fully loaded. The solution is to attach the function which adds the <script>
element to the onload
event.