Optimize ordering of CSS links and scripts

Placing CSS links before all script tags allows the CSS to be loaded in parallel.