Optimize the order of styles and scripts in <head>
Emit styles and scripts in the following order:
- Inline <script>...</script> tags.
- External stylesheets.
- External script tags.
I have attempted this before in I98d383a6, and subsequently reverted (in
I151f74a41) when it failed to show a performance improvement. Our ability
to measure performance were substantially poorer then, so I would like to
give this another try and see if it makes a dent in first render times.