Revert to first solution, making the original change optional (the change that places styles before the first script tag)

This reverts commit 4681f5ce027ff94bcf13bc3c8d4fdc267d430e55.