Use the next/script component in your root layout. The afterInteractive strategy loads the widget once the page is interactive, so it won’t block rendering.
app/layout.tsx
import Script from 'next/script'export default function RootLayout({ children }: { children: React.ReactNode }) { return ( <html lang="en"> <body> {children} <Script src="https://app.audyr.com/widget/widget.min.js" data-token="YOUR_TOKEN" strategy="afterInteractive" /> </body> </html> )}