diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-11-29 14:38:24 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-11-29 14:38:24 +0700 |
| commit | d324d01bb9413a023a158a7bd15ba36bb7beb9bc (patch) | |
| tree | 18ed3c1f185a71c21884f2e16dc84055767161c8 /src/pages | |
| parent | f7331b83bd398187728c5ce098ada55053a055df (diff) | |
update performance
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/index.jsx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 2ec1231a..e685b382 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -16,7 +16,7 @@ import CategoryPilihan from '../lib/home/components/CategoryPilihan'; // import { getAuth } from '~/libs/auth'; const BasicLayout = dynamic(() => - import('@/core/components/layouts/BasicLayout'),{ssr: false} + import('@/core/components/layouts/BasicLayout') ); const HeroBanner = dynamic(() => import('@/components/ui/HeroBanner'), { loading: () => <HeroBannerSkeleton />, @@ -40,24 +40,17 @@ const PreferredBrand = dynamic( const FlashSale = dynamic( () => import('@/lib/flashSale/components/FlashSale'), - { - loading: () => <FlashSaleSkeleton />, - } ); const ProgramPromotion = dynamic( - () => import('@/lib/home/components/PromotionProgram'), - { - loading: () => <BannerPromoSkeleton />, - } + () => import('@/lib/home/components/PromotionProgram') ); const BannerSection = dynamic(() => import('@/lib/home/components/BannerSection') ); const CategoryHomeId = dynamic( - () => import('@/lib/home/components/CategoryHomeId'), - { ssr: false } + () => import('@/lib/home/components/CategoryHomeId') ); const CategoryDynamic = dynamic(() => |
