add module preload for each page

This commit is contained in:
Arthur Lu 2025-02-27 22:13:37 +00:00
parent 7f7e17e8ee
commit 323129185b
5 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,8 @@
<script src="scripts/account.js" type="module"></script>
<script src="modules/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="modulepreload" href="scripts/utils.js">
<link rel="modulepreload" href="scripts/dialog.js">
<style>
@media screen and (width >= 1264px){
#resource-container {

View File

@ -4,6 +4,9 @@
{{template "head" .}}
<script src="scripts/index.js" type="module"></script>
<script src="modules/wfa.js" type="module"></script>
<link rel="modulepreload" href="scripts/utils.js">
<link rel="modulepreload" href="scripts/dialog.js">
<link rel="modulepreload" href="scripts/clientsync.js">
<style>
#instance-container > div {
border-bottom: 1px solid white;

View File

@ -6,6 +6,8 @@
<script src="scripts/draggable.js" type="module"></script>
<script src="modules/Sortable.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sortablejs@latest/Sortable.min.js"></script>
<link rel="modulepreload" href="scripts/utils.js">
<link rel="modulepreload" href="scripts/dialog.js">
<style>
.input-grid p, .input-grid div {
margin-top: 0;

View File

@ -3,6 +3,8 @@
<head>
{{template "head" .}}
<script src="scripts/login.js" type="module"></script>
<link rel="modulepreload" href="scripts/utils.js">
<link rel="modulepreload" href="scripts/dialog.js">
</head>
<body>
<header>

View File

@ -3,6 +3,7 @@
<head>
{{template "head" .}}
<script src="scripts/settings.js" type="module"></script>
<link rel="modulepreload" href="scripts/utils.js">
<style>
legend {
margin-bottom: 25px;