faster theme loading

This commit is contained in:
MathMan05 2024-11-25 18:51:09 -06:00
parent ff443ea1f0
commit 2c398bbd8d

View file

@ -80,7 +80,7 @@ const instancefetch=fetch("/instances.json")
} }
} }
); );
setTheme();
await I18n.done await I18n.done
function setTheme(){ function setTheme(){
let name = localStorage.getItem("theme"); let name = localStorage.getItem("theme");
@ -107,7 +107,7 @@ function setTheme(){
noAccount.textContent=I18n.getTranslation("htmlPages.noAccount"); noAccount.textContent=I18n.getTranslation("htmlPages.noAccount");
} }
})() })()
setTheme();
function getBulkUsers(){ function getBulkUsers(){
const json = getBulkInfo(); const json = getBulkInfo();
for(const thing in json.users){ for(const thing in json.users){