Get rid of no-fouc stuff
With HTTP/2 and cache control, this is unnecessary
This commit is contained in:
parent
4cdfc2e76d
commit
1123a16a62
14
src/meta.php
14
src/meta.php
@ -2,17 +2,3 @@
|
||||
<link href="/styles/styles.css" type="text/css" 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" />
|
||||
<!-- 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>
|
||||
|
Loading…
Reference in New Issue
Block a user