@@ -13,8 +13,7 @@ import dayjs from 'dayjs';
1313import timezone from 'dayjs/plugin/timezone' ;
1414import utc from 'dayjs/plugin/utc' ;
1515import { useAtom } from 'jotai' ;
16-
17- import { useCallback , useMemo } from 'react' ;
16+ import { lazy , useCallback , useMemo } from 'react' ;
1817import {
1918 DataTable ,
2019 DeviceTypeCell ,
@@ -28,11 +27,9 @@ import {
2827 type ReferrerSourceCellData ,
2928} from '@/components/atomic/ReferrerSourceCell' ;
3029import { MetricsChart } from '@/components/charts/metrics-chart' ;
31-
3230import { useBatchDynamicQuery } from '@/hooks/use-dynamic-query' ;
3331import { useTableTabs } from '@/lib/table-tabs' ;
3432import { getUserTimezone } from '@/lib/timezone' ;
35-
3633import {
3734 metricVisibilityAtom ,
3835 toggleMetricAtom ,
@@ -50,7 +47,12 @@ import {
5047} from '../utils/technology-helpers' ;
5148import type { FullTabProps , MetricPoint } from '../utils/types' ;
5249import { MetricToggles } from '../utils/ui-components' ;
53- import { CustomEventsSection } from './sections/custom-events-section' ;
50+
51+ const CustomEventsSection = lazy ( ( ) =>
52+ import ( './sections/custom-events-section' ) . then ( ( mod ) => ( {
53+ default : mod . CustomEventsSection ,
54+ } ) )
55+ ) ;
5456
5557interface ChartDataPoint {
5658 date : string ;
0 commit comments