Escaping the hideous flash of uncontained style

This is as close as I can get to removing a horrible attack of unhidden elements up in your face when trying to be a good person and building a site to gracefully degrade:

<script type="text/javascript">document.getElementsByTagName('html')[0].className = 'js';</script>

The idea is just to get a class onto the html element as early as possible. Get this right up in the head before everything for maximum goodness. No need for jQuery etc.

You then use nice ".js blah" selectors to hide everything in your stylesheet and no-one will ever know.