perf: faster app without defineAsync

This commit is contained in:
2026-08-02 08:59:13 +02:00
parent fe5c0f94b2
commit f680b04533
7 changed files with 17 additions and 34 deletions
+3 -7
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, onBeforeMount, computed, defineAsyncComponent } from "vue";
import { ref, onBeforeMount, computed } from "vue";
import type { Task } from "@/types";
import { getTasks, createTask, deleteTask } from "@/api/tasks";
import {
@@ -9,12 +9,8 @@ import {
SearchIcon,
Share2Icon,
} from "@lucide/vue";
const TaskItem = defineAsyncComponent(
() => import("@/components/TaskItem.vue"),
);
const ListOptions = defineAsyncComponent(
() => import("@/components/ListOptions.vue"),
);
import TaskItem from "@/components/TaskItem.vue";
import ListOptions from "@/components/ListOptions.vue";
import { taskCompleted, sortTasks, newTemporaryTask } from "@/lib/tasks";
import { SortType } from "@/enums";
import { booleanCookieRef, enumCookieRef } from "@/lib/cookies";