aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com> 2021-05-23 15:11:15 +0200
committerMango0x45 <thomasvoss@live.com> 2021-05-23 15:11:15 +0200
commit2c518592aa7ec14a484aeee4db77664d85de2e1d (patch)
tree443eee7e8847f39d409481da49be0cee7c734163
parentfea67dbe1516fbf765de9a45631684979aeb0a3f (diff)
Defer JS scripts
-rw-r--r--index.html5
-rw-r--r--settings.html4
2 files changed, 3 insertions, 6 deletions
diff --git a/index.html b/index.html
index cfaefdc..969067e 100644
--- a/index.html
+++ b/index.html
@@ -9,6 +9,8 @@
<meta name="description" content="A speedrun retime tool">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
+ <script defer src="main.js"></script>
+ <script defer src="settings.js"></script>
</head>
<body>
@@ -76,9 +78,6 @@
<button id="mod_message_button" disabled onclick="copy_mod_message()">
Copy Mod Message to Clipboard
</button>
-
- <script src="main.js"></script>
- <script src="settings.js"></script>
</body>
</html>
diff --git a/settings.html b/settings.html
index 052d993..896df84 100644
--- a/settings.html
+++ b/settings.html
@@ -9,6 +9,7 @@
<meta name="description" content="A speedrun retime tool">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
+ <script defer src="settings.js"></script>
</head>
<body>
@@ -61,9 +62,6 @@
</a>
<br>
<textarea id="custom_mod_message" cols="40" rows="3" onchange="set_mod_message(event)"></textarea>
-
- <!-- This needs to come after the switches switch -->
- <script src="settings.js"></script>
</body>
</html>