Revert "Move head output before frontend styles"

This reverts commit 4a37f0d165f0a107228cf905312088497fbca195.