Skip to content

Commit 52920b2

Browse files
committed
Docs: hide toc until alpine has loaded
From https://alpinejs.dev/directives/cloak : > Sometimes, when you're using AlpineJS for a part of your template, there is a > "blip" where you might see your uninitialized template after the page loads, > but before Alpine loads. > > `x-cloak` addresses this scenario by hiding the element it's attached to until > Alpine is fully loaded on the page. > > For `x-cloak` to work however, you must add the following CSS to the page. > > ``` > [x-cloak] { display: none !important; } > ```
1 parent 62d32b9 commit 52920b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

asset/css/doc.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[x-cloak] { display: none !important; }
2+
13
div.odoc {
24
max-width: 56rem /* 896px */;
35
position: relative;

0 commit comments

Comments
 (0)