diff --git a/public/assets/scripts/main.js b/public/assets/scripts/main.js
index 9275d99..c2b6ed7 100644
--- a/public/assets/scripts/main.js
+++ b/public/assets/scripts/main.js
@@ -22,15 +22,13 @@ fileSelector.onFileSelected = file => {
async function compress(filesize, filesizeUnit) {
document.getElementById("uploaded-video").pause();
- const sectionChangePromise = showSection("loading");
-
if (!fileSelector.selectedFile) {
- await sectionChangePromise; // Avoid changing sections at the same time
alert("Please select a file");
-
return;
}
+ const sectionChangePromise = showSection("loading");
+
const videoLength = document.getElementById("uploaded-video").duration;
let targetFilesize;
diff --git a/public/index.html b/public/index.html
index 6ffd1ec..5ac3f23 100644
--- a/public/index.html
+++ b/public/index.html
@@ -8,6 +8,7 @@
+