Skip to content

Commit

Permalink
Add x-cloak to body to prevent flicker on load
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Nov 16, 2021
1 parent 16a76ca commit d60d2c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
{{ partial "styles.html" . }}
{{ partial "js.html" . }}
{{ partial "hook_head_end.html" . }}
<style>
[x-cloak] {
display: none !important;
}
</style>
</head>
<body class="index" x-data="{ navOpen: false }">
<body class="index" x-data="{ navOpen: false }" x-cloak>
<a href="#" id="nav-button" @click="navOpen = !navOpen" :class="{'open': navOpen }">
<span>
NAV
Expand Down

0 comments on commit d60d2c7

Please sign in to comment.