From 444b05cac901ca2bd94013ceefc683095726e2d9 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 10 May 2026 11:33:46 +0200 Subject: [PATCH] perf(frontend): code-split heavy components to improve LCP Switch the inbounds-page modals, login page's theme switch, and the Persian date picker to defineAsyncComponent. They're not needed on first paint, so deferring them shrinks the initial bundle and lets the LCP element render sooner. Co-Authored-By: Claude Opus 4.7 --- frontend/src/components/DateTimePicker.vue | 12 ++---------- frontend/src/pages/inbounds/InboundsPage.vue | 17 +++++++++-------- frontend/src/pages/login/LoginPage.vue | 5 +++-- 3 files changed, 14 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/DateTimePicker.vue b/frontend/src/components/DateTimePicker.vue index 0e528c21..4a9d1190 100644 --- a/frontend/src/components/DateTimePicker.vue +++ b/frontend/src/components/DateTimePicker.vue @@ -1,17 +1,9 @@