fix: move `ajaxify.parseData` back out to DOMContentLoaded

partialy reverts 2bfccac72
isekai-main
Julian Lam 3 years ago
parent 077eb0912a
commit 2582cb53a6

@ -25,11 +25,12 @@ app.widgets = {};
app.flags = {};
app.onDomReady = function () {
document.addEventListener('DOMContentLoaded', ajaxify.parseData);
$(document).ready(async function () {
if (app.user.timeagoCode && app.user.timeagoCode !== 'en') {
await import(/* webpackChunkName: "timeago/[request]" */ 'timeago/locales/jquery.timeago.' + app.user.timeagoCode);
}
ajaxify.parseData();
app.load();
});
};

Loading…
Cancel
Save