diff --git a/src/app/page.tsx b/src/app/page.tsx index 12416ab..580f815 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -11,6 +11,7 @@ import BlogCardThree from "@/components/sections/blog/BlogCardThree"; import ContactText from "@/components/sections/contact/ContactText"; import FooterCard from "@/components/sections/footer/FooterCard"; import { Sparkles, Star, Zap, Shield, Layout, MapPin, Instagram, Facebook } from "lucide-react"; +import dynamic from "next/dynamic"; const navItems = [ { name: "Services", id: "services" }, @@ -135,6 +136,23 @@ const footerSocialLinks = [ href: "https://facebook.com", ariaLabel: "Follow us on Facebook"}, ]; +// Dynamically import heavy components with lazy loading for better performance +const DynamicHeroSection = dynamic(() => import('@/components/sections/hero/HeroSplitDoubleCarousel'), { + loading: () =>
, +}); + +const DynamicAboutSection = dynamic(() => import('@/components/sections/about/SplitAbout'), { + loading: () => , +}); + +const DynamicTestimonialSection = dynamic(() => import('@/components/sections/testimonial/TestimonialCardOne'), { + loading: () => , +}); + +const DynamicGallerySection = dynamic(() => import('@/components/sections/blog/BlogCardThree'), { + loading: () => , +}); + export default function LandingPage() { return (