Dynamically import dependencies that are not critical to viewing the UI (#2001)

This commit is contained in:
Gold856
2025-07-13 17:28:45 -04:00
committed by GitHub
parent a62d5e0eee
commit ed58f69275
6 changed files with 30 additions and 15 deletions

View File

@@ -15,6 +15,11 @@ import ApriltagControlCard from "@/components/settings/ApriltagControlCard.vue";
<NetworkingCard />
<ObjectDetectionCard v-if="useSettingsStore().general.supportedBackends.length > 0" />
<LightingControlCard v-if="useSettingsStore().lighting.supported" />
<ApriltagControlCard />
<Suspense>
<!-- Allows us to import three js when it's actually needed -->
<ApriltagControlCard />
<template #fallback> Loading... </template>
</Suspense>
</div>
</template>