diff --git a/packages/backend/src/server/web/boot.js b/packages/backend/src/server/web/boot.js index 7357081425..b9f00bb21d 100644 --- a/packages/backend/src/server/web/boot.js +++ b/packages/backend/src/server/web/boot.js @@ -56,12 +56,14 @@ //#endregion //#region Script - import(`/assets/${CLIENT_ENTRY}`) - .catch(async e => { - await checkUpdate(); - console.error(e); - renderError('APP_IMPORT', e); - }) + window.addEventListener('DOMContentLoaded', () => { + import(`/assets/${CLIENT_ENTRY}`) + .catch(async e => { + await checkUpdate(); + console.error(e); + renderError('APP_IMPORT', e); + }); + }); //#endregion //#region Theme