summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2024-09-17 14:37:18 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2024-09-17 14:37:18 +0700
commitc28642a0003f0bd996614cb6849d951c7e276a11 (patch)
tree88f260fcdbbcd535c687038ba0564141fa4d6e73 /src/pages
parent375365d46144e6f20bf7d4ffee1f52e6400cf214 (diff)
optimize page and tag html
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/index.jsx20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 0e87205e..6077c192 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -18,7 +18,7 @@ import { getAuth } from '~/libs/auth';
import useProductDetail from '~/modules/product-detail/stores/useProductDetail';
const BasicLayout = dynamic(() =>
- import('@/core/components/layouts/BasicLayout')
+ import('@/core/components/layouts/BasicLayout'),{ssr: false}
);
const HeroBanner = dynamic(() => import('@/components/ui/HeroBanner'), {
loading: () => <HeroBannerSkeleton />,
@@ -55,24 +55,24 @@ const ProgramPromotion = dynamic(() =>
);
const BannerSection = dynamic(() =>
- import('@/lib/home/components/BannerSection')
+ import('@/lib/home/components/BannerSection'), {ssr: false}
);
const CategoryHomeId = dynamic(() =>
- import('@/lib/home/components/CategoryHomeId')
+ import('@/lib/home/components/CategoryHomeId'), {ssr: false}
);
const CategoryDynamic = dynamic(() =>
- import('@/lib/home/components/CategoryDynamic')
+ import('@/lib/home/components/CategoryDynamic'), {ssr: false}
);
const CategoryDynamicMobile = dynamic(() =>
-import('@/lib/home/components/CategoryDynamicMobile')
+import('@/lib/home/components/CategoryDynamicMobile'), {ssr: false}
);
const CustomerReviews = dynamic(() =>
- import('@/lib/review/components/CustomerReviews')
+ import('@/lib/review/components/CustomerReviews'), {ssr: false}
); // need to ssr:false
-const ServiceList = dynamic(() => import('@/lib/home/components/ServiceList')); // need to ssr: false
+const ServiceList = dynamic(() => import('@/lib/home/components/ServiceList'), {ssr: false}); // need to ssr: false
@@ -148,11 +148,11 @@ export default function Home({categoryId}) {
</DelayRender>
</>
)}
- <PromotinProgram />
+ {/* <PromotinProgram /> */}
{dataCategories &&(
<CategoryPilihan categories={dataCategories} />
)}
- <CategoryDynamic />
+ <CategoryDynamic />
<CategoryHomeId />
<BannerSection />
<CustomerReviews />
@@ -183,7 +183,7 @@ export default function Home({categoryId}) {
</>
)}
<DelayRender renderAfter={600}>
- <PromotinProgram />
+ {/* <PromotinProgram /> */}
</DelayRender>
<DelayRender renderAfter={600}>
{dataCategories &&(