Skip to content

Commit aac3f00

Browse files
committed
add preload
1 parent 75a960a commit aac3f00

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

spring-boot-admin-server-ui/src/main/frontend/index.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,22 @@
2222
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
2323
<meta name="format-detection" content="telephone=no,email=no">
2424
<meta name="theme-color" content="#42d3a5">
25-
<link rel="shortcut icon" href="assets/img/favicon.png" type="image/png">
25+
26+
<link rel="preload" href="assets/css/sba-core.css" as="style">
27+
<th:block th:each="cssFile : ${cssExtensions}">
28+
<link rel="preload" th:href="${cssFile.resourcePath}" as="style">
29+
</th:block>
30+
<link rel="preload" href="assets/js/vendors.js" as="script">
31+
<th:block th:each="jsFile : ${jsExtensions}">
32+
<link rel="preload" th:src="${jsFile.resourcePath}" as="script">
33+
</th:block>
34+
<link rel="preload" src="assets/js/sba-core.js" as="script">
35+
2636
<link href="assets/css/sba-core.css" rel="stylesheet">
2737
<th:block th:each="cssFile : ${cssExtensions}">
2838
<link th:href="${cssFile.resourcePath}" rel="stylesheet">
2939
</th:block>
40+
<link rel="shortcut icon" href="assets/img/favicon.png" type="image/png">
3041
<title th:text="${uiSettings.title}">Spring Boot Admin</title>
3142
</head>
3243
<body>

spring-boot-admin-server-ui/src/main/frontend/login.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<meta name="format-detection" content="telephone=no,email=no">
2424
<meta name="theme-color" content="#42d3a5">
2525
<link rel="shortcut icon" href="assets/img/favicon.png" type="image/png">
26+
<link rel="preload" href="assets/css/sba-core.css" as="style">
2627
<link href="assets/css/sba-core.css" rel="stylesheet">
2728
<title>Spring Boot Admin - Login</title>
2829
</head>

0 commit comments

Comments
 (0)