Skip to content

Commit

Permalink
Wait for Vue to finish loading before showing HTML
Browse files Browse the repository at this point in the history
This prevents flashing static HTML elements (icons, modals) on reload.
  • Loading branch information
Teraskull authored May 18, 2022
1 parent bbd19b7 commit b146ba1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
</head>

<style>
[v-cloak] {
display: none;
}
</style>

<body class="bg-gray-50">

<div id="app">

<div class="container mx-auto max-w-3xl">
<div v-cloak class="container mx-auto max-w-3xl">

<div v-if="authenticated === true">
<span v-if="requiresPassword"
Expand Down Expand Up @@ -465,7 +471,7 @@ <h1 class="text-4xl font-medium my-16 text-gray-700 text-center">WireGuard</h1>

</div>

<p class="text-center m-10 text-gray-300 text-xs">Made by <a target="_blank" class="hover:underline"
<p v-cloak class="text-center m-10 text-gray-300 text-xs">Made by <a target="_blank" class="hover:underline"
href="https://emilenijssen.nl/?ref=wg-easy">Emile Nijssen</a> · <a class="hover:underline"
href="https://github.com/sponsors/WeeJeWel" target="_blank">Donate</a> · <a class="hover:underline"
href="https://github.com/weejewel/wg-easy" target="_blank">GitHub</a></p>
Expand All @@ -482,4 +488,4 @@ <h1 class="text-4xl font-medium my-16 text-gray-700 text-center">WireGuard</h1>
<script src="./js/app.js"></script>
</body>

</html>
</html>

0 comments on commit b146ba1

Please sign in to comment.