From 2e0557c90c6826a50b9f788a8d818d4476f4f6b9 Mon Sep 17 00:00:00 2001 From: ShittyKopper Date: Fri, 2 Feb 2024 14:56:58 +0300 Subject: [PATCH] upd: lazy load SkOneko on demand --- packages/frontend/src/ui/_common_/common.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/ui/_common_/common.vue b/packages/frontend/src/ui/_common_/common.vue index ffdb4fa2d8..476394ee21 100644 --- a/packages/frontend/src/ui/_common_/common.vue +++ b/packages/frontend/src/ui/_common_/common.vue @@ -60,7 +60,8 @@ import { useStream } from '@/stream.js'; import { i18n } from '@/i18n.js'; import { defaultStore } from '@/store.js'; import { globalEvents } from '@/events.js'; -import SkOneko from '@/components/SkOneko.vue'; + +const SkOneko = defineAsyncComponent(() => import('@/components/SkOneko.vue')); const XStreamIndicator = defineAsyncComponent(() => import('./stream-indicator.vue')); const XUpload = defineAsyncComponent(() => import('./upload.vue'));