bug #4642 phpmyadmin often fails to load due to specific load order

From what I read, modern browsers consider dynamically added script tags as 'async', which probably causes the issue described in the bug report. 
I'd like have someone else look at this before merging, since I am not very familiar with script loading.