🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Refactor layout structure to move script tags into the head section for better organization and performance.
Bill Yang828c749656f6
diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsxindex cf438f547..d37a03c40 100644--- a/docs/src/app/layout.tsx+++ b/docs/src/app/layout.tsx@@ -76,18 +76,20 @@ export default async function Layout({ children }: { children: ReactNode }) {const locale = await getLocale();return (<html lang={locale} suppressHydrationWarning>- <Script src="https://demo.rybbit.com/api/script.js" data-site-id="21" />- <Script- src="https://demo.rybbit.com/api/script.js?ns=demo"- data-site-id="3b023d1a7895"- data-namespace="rybbit_demo"- />- <Script id="rewardful-queue" strategy="beforeInteractive">- {`(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');`}- </Script>- <Script src="https://r.wdfl.co/rw.js" data-rewardful="fc3780" strategy="afterInteractive" />+ <head>+ <Script id="rewardful-queue" strategy="beforeInteractive">+ {`(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');`}+ </Script>+ </head><body className={`flex flex-col min-h-screen ${inter.variable} font-sans`}>{children}+ <Script src="https://demo.rybbit.com/api/script.js" data-site-id="21" />+ <Script+ src="https://demo.rybbit.com/api/script.js?ns=demo"+ data-site-id="3b023d1a7895"+ data-namespace="rybbit_demo"+ />+ <Script src="https://r.wdfl.co/rw.js" data-rewardful="fc3780" strategy="afterInteractive" /></body></html>);