WebUI: use defer when loading scripts

So that the HTML layout can be rendered earlier.
This commit is contained in:
Chocobo1
2025-05-28 23:17:58 +08:00
parent 9b66693cb8
commit 753c6629a3
25 changed files with 216 additions and 208 deletions

View File

@@ -5,8 +5,8 @@
<meta charset="UTF-8">
<title>QBT_TR(Add trackers)QBT_TR[CONTEXT=TrackersAdditionDialog]</title>
<link rel="stylesheet" href="css/style.css?v=${CACHEID}" type="text/css">
<script src="scripts/localpreferences.js?v=${CACHEID}"></script>
<script src="scripts/color-scheme.js?v=${CACHEID}"></script>
<script defer src="scripts/localpreferences.js?v=${CACHEID}"></script>
<script defer src="scripts/color-scheme.js?v=${CACHEID}"></script>
<script>
"use strict";