File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ let default = () => {
30
30
let (isOverlayOpen , setOverlayOpen ) = React .useState (_ => false )
31
31
<html >
32
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
+
33
37
<link rel = "icon" href = "data:image/x-icon;base64,AA" />
34
38
<link rel = "preload" href = "../styles/main.css" type_ = "text/css" />
35
39
<link rel = "stylesheet" href = "../styles/main.css" />
Original file line number Diff line number Diff line change 551
551
.CodeMirror-overlayscroll-vertical div {
552
552
right : 0 ;
553
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 ;
554
562
}
You can’t perform that action at this time.
0 commit comments