Change to defer

This commit is contained in:
Bruno Rybársky 2024-02-04 09:59:51 +01:00
parent 8e44b5aaf0
commit 9841f68b5d
2 changed files with 7 additions and 13 deletions

@ -52,16 +52,12 @@
listActivationCodes();
}
function admininit(){
listActivationCodes();
listUsers();
userinit();
}
window.onload = admininit;
</script>
<script defer>
listActivationCodes();
listUsers();
</script>
<div class="form-container" id="addActivationCodesForm">
<h1>Activation Codes</h1>

@ -59,12 +59,10 @@
populateUserInfoFields(result.UserInfo);
}
}
</script>
function userinit() {
<script defer>
getUserInfo();
}
window.onload = userinit;
</script>
<!-- Centralized Status Message -->