Optimize the order of styles and scripts in <head>
authorOri Livneh <ori@wikimedia.org>
Thu, 13 Aug 2015 21:30:31 +0000 (14:30 -0700)
committerOri Livneh <ori@wikimedia.org>
Fri, 14 Aug 2015 19:09:52 +0000 (12:09 -0700)
commit09537e83e7d2c2245f6bcbcf8ac2b25afe4f96da
tree89fbd86f12e063708d6ad0aa141553067f3d34c6
parent7678bc7a53ff0aecb317f70527daeb65c80eb76b
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.

Change-Id: I5e6c79c7041aa77bcdc6130e91e77aa538334c42
includes/OutputPage.php