Skip to content

Commit

Permalink
add comments for x-cloak
Browse files Browse the repository at this point in the history
  • Loading branch information
yuheiy committed Aug 11, 2023
1 parent 73e9b77 commit 64e6428
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/styles/base.base.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* 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.
*
* https://alpinejs.dev/directives/cloak
*/

[x-cloak] {
display: none;
display: none !important;
}

0 comments on commit 64e6428

Please sign in to comment.