There was an error while loading. Please reload this page.
1 parent b3e42b7 commit 62a4916Copy full SHA for 62a4916
2 files changed
app/root.res
@@ -30,6 +30,10 @@ let default = () => {
30
let (isOverlayOpen, setOverlayOpen) = React.useState(_ => false)
31
<html>
32
<head>
33
+ // This is to prevent FOUC (flash of unstyled content)
34
+ // This line has to be above everything else
35
+ <style> {React.string("html{opacity: 0;}")} </style>
36
+
37
<link rel="icon" href="data:image/x-icon;base64,AA" />
38
<link rel="preload" href="../styles/main.css" type_="text/css" />
39
<link rel="stylesheet" href="../styles/main.css" />
styles/main.css
@@ -551,4 +551,12 @@
551
.CodeMirror-overlayscroll-vertical div {
552
right: 0;
553
width: 100%;
554
+}
555
556
557
558
+/* This has to stay at the end! */
559
+/* This is to prevent FOUC (flash of unstyled content) */
560
+html {
561
+ opacity: 1;
562
}
0 commit comments