From 952cebc59aad052ee41b8403f1a638502df1ecb4 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Thu, 26 Mar 2026 11:48:58 +0100 Subject: [PATCH] =?UTF-8?q?perf:=20lazy-load=20Chart=20component=20?= =?UTF-8?q?=E2=80=94=20prevents=20main=20thread=20freeze=20on=20page=20loa?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/sites/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sites/[id]/page.tsx b/app/sites/[id]/page.tsx index 1d34768..9b23553 100644 --- a/app/sites/[id]/page.tsx +++ b/app/sites/[id]/page.tsx @@ -25,7 +25,7 @@ import dynamic from 'next/dynamic' import { DashboardSkeleton, useMinimumLoading, useSkeletonFade } from '@/components/skeletons' import FilterBar from '@/components/dashboard/FilterBar' import AddFilterDropdown, { type FilterSuggestion, type FilterSuggestions } from '@/components/dashboard/AddFilterDropdown' -import Chart from '@/components/dashboard/Chart' +const Chart = dynamic(() => import('@/components/dashboard/Chart'), { ssr: false }) import ContentStats from '@/components/dashboard/ContentStats' import TopReferrers from '@/components/dashboard/TopReferrers' import Locations from '@/components/dashboard/Locations'