(null)
+ const [isVisible, setIsVisible] = useState(false)
+
+ useEffect(() => {
+ const container = containerRef.current
+ if (!container || isVisible) {
+ return
+ }
+
+ if (!("IntersectionObserver" in window)) {
+ setIsVisible(true)
+ return
+ }
+
+ const observer = new IntersectionObserver(
+ ([entry]) => {
+ if (entry.isIntersecting) {
+ setIsVisible(true)
+ observer.disconnect()
+ }
+ },
+ {rootMargin: "600px 0px"}
+ )
+
+ observer.observe(container)
+ return () => observer.disconnect()
+ }, [isVisible])
+
+ return (
+
+ {isVisible ? children : null}
+
+ )
+}
+
+export default LazyHomeSection
diff --git a/src/components/home/index.tsx b/src/components/home/index.tsx
index 0a8a67dbc..d00300eb2 100644
--- a/src/components/home/index.tsx
+++ b/src/components/home/index.tsx
@@ -8,17 +8,30 @@ import Configuration from "./Configuration"
import Testimonials from "./Testimonials"
import Announcement from "../shared/Announcement"
import IntroductionVideo from "./IntroductionVideo"
+import LazyHomeSection from "./LazyHomeSection"
const HomePage = (): JSX.Element => {
return (
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{/*
*/}
-
+
+
+
)
}
diff --git a/src/css/custom.css b/src/css/custom.css
index 0e37d054a..795d812ca 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -1,5 +1,3 @@
-@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Space+Mono&display=swap");
-
@tailwind base;
@tailwind components;
@tailwind utilities;