ui: monaco: lazy load resources

This commit is contained in:
undefined committed 2022-01-09 02:25:45 +08:00
1 parent 538862de07
commit f020923d35
8 files changed
+57 -26

No files matched your search

-2
View File
@@ -4,7 +4,6 @@ import _ from 'lodash';
import Notification from 'vj/components/notification';
import PageLoader from 'vj/misc/PageLoader';
import delay from 'vj/utils/delay';
import i18n from './i18n';
declare global {
interface Window {
@@ -37,7 +36,6 @@ function buildSequence(pages, type) {
async function load() {
for (const page of window.Hydro.preload) await eval(page); // eslint-disable-line no-eval
await i18n();
const pageLoader = new PageLoader();
const currentPageName = document.documentElement.getAttribute('data-page');