Created
September 28, 2024 17:32
-
-
Save james2doyle/f2d2b4eaaa926591ea56f034e22831fe to your computer and use it in GitHub Desktop.
Trick with v-cloak in Vuejs but updated for Alpine and x-cloak. From https://medium.com/vuejs-tips/v-cloak-45a05da28dc4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[x-cloak], | |
[x-cloak]>* { | |
display: none !important; | |
} | |
[x-cloak]::before { | |
content: "loading\2026"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment