diff --git a/landing-page/src/app/layout.tsx b/landing-page/src/app/layout.tsx index 2adbbc3e..5b9336b7 100644 --- a/landing-page/src/app/layout.tsx +++ b/landing-page/src/app/layout.tsx @@ -2,7 +2,6 @@ import type { Metadata } from "next"; import { darkerGrotesque, pattanakarn } from '../lib/fonts'; import "./globals.css"; import { GoogleAnalytics } from '@next/third-parties/google' -import RB2BLoader from '../components/RB2BLoader'; export const metadata: Metadata = { title: "Exosphere | Async AI Workflows at Scale", @@ -74,7 +73,6 @@ export default function RootLayout({ > {children} - ); diff --git a/landing-page/src/components/RB2BLoader.tsx b/landing-page/src/components/RB2BLoader.tsx deleted file mode 100644 index 5214e281..00000000 --- a/landing-page/src/components/RB2BLoader.tsx +++ /dev/null @@ -1,21 +0,0 @@ -'use client'; - -import { usePathname } from 'next/navigation'; -import { useEffect } from 'react'; - -export default function RB2BLoader() { - const pathname = usePathname(); - - useEffect(() => { - const existing = document.getElementById('rb2b-script'); - if (existing) existing.remove(); - - const script = document.createElement('script'); - script.id = 'rb2b-script'; - script.src = `https://ddwl4m2hdecbv.cloudfront.net/b/0OV0VHMQGM6Z/0OV0VHMQGM6Z.js.gz`; - script.async = true; - document.body.appendChild(script); - }, [pathname]); - - return null; -}