Skip to content

Build your personal knowledge base with Trilium Notes

fix(views/set_password): fix "flash of unstyled content"

Panagiotis Papadopoulosee5a232d209d
diff --git a/src/views/set_password.ejs b/src/views/set_password.ejs
index daef4eee72..8b4285ea19 100644
--- a/src/views/set_password.ejs
+++ b/src/views/set_password.ejs
@@ -6,6 +6,10 @@
<title><%= t("login.title") %></title>
<link rel="apple-touch-icon" sizes="180x180" href="<%= assetPath %>/images/app-icons/ios/apple-touch-icon.png">
<link rel="shortcut icon" href="favicon.ico">
+ <link rel="stylesheet" href="<%= assetPath %>/node_modules/bootstrap/dist/css/bootstrap.min.css">
+ <link rel="stylesheet" href="<%= assetPath %>/stylesheets/theme-light.css">
+ <link rel="stylesheet" href="<%= assetPath %>/stylesheets/theme-next.css">
+ <link rel="stylesheet" href="<%= assetPath %>/stylesheets/style.css">
</head>
<body>
<div class="container">
@@ -45,10 +49,5 @@
// Required for correct loading of scripts in Electron
if (typeof module === 'object') {window.module = module; module = undefined;}
</script>
-
-<link href="<%= assetPath %>/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
-<link href="<%= assetPath %>/stylesheets/theme-light.css" rel="stylesheet" />
-<link href="<%= assetPath %>/stylesheets/theme-next.css" rel="stylesheet" />
-<link href="<%= assetPath %>/stylesheets/style.css" rel="stylesheet">
</body>
</html>