Switch the JS class on the html as soon as possible. Insert this line just after the title. (http://www.456bereastreet.com/archive/201209/tell_css_that_javascript_is_available_asap/)