Get rid of no-fouc stuff

With HTTP/2 and cache control, this is unnecessary
This commit is contained in:
Salt 2021-02-14 19:53:18 -06:00
parent 4cdfc2e76d
commit 1123a16a62

View File

@ -2,17 +2,3 @@
<link href="/styles/styles.css" type="text/css" rel="stylesheet"> <link href="/styles/styles.css" type="text/css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- No FOUC -->
<style type="text/css">
.no-fouc {display: none;}
</style>
<script type="text/javascript">
document.documentElement.classname = 'no-fouc';
window.addEventListener("load", function(event) {
// No flash of unstyled content
nf = document.getElementsByClassName('no-fouc');
for (i = 0, len = nf.length; i < len; i++) {
nf[i].removeClass('no-fouc');
}
});
</script>