Move phonegap external resource load to the top