mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	fix(views/login): fix "flash of unstyled content"
move stylesheets to head of HTML to get rid of "FOUC" aka "Flash of unstyled content"
This commit is contained in:
		
							parent
							
								
									5a3a31ff1c
								
							
						
					
					
						commit
						7ca4ed4369
					
				@ -6,6 +6,10 @@
 | 
				
			|||||||
    <title><%= t("login.title") %></title>
 | 
					    <title><%= t("login.title") %></title>
 | 
				
			||||||
    <link rel="apple-touch-icon" sizes="180x180" href="<%= assetPath %>/images/app-icons/ios/apple-touch-icon.png">
 | 
					    <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="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>
 | 
					</head>
 | 
				
			||||||
<body>
 | 
					<body>
 | 
				
			||||||
<div class="container">
 | 
					<div class="container">
 | 
				
			||||||
@ -77,10 +81,5 @@
 | 
				
			|||||||
            /\b(Android|Windows Phone|iPad|iPod)\b/i.test(navigator.userAgent);
 | 
					            /\b(Android|Windows Phone|iPad|iPod)\b/i.test(navigator.userAgent);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
</script>
 | 
					</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>
 | 
					</body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user