Problem: Load js files asynchronously, then check to see if the dom is loaded before the callback from loading the files is executed.
You can always put your initial loader script at the bottom, right before the closing body tag.