beforeIntgeractive script isn't running sooner
Unanswered
Australian Freshwater Crocodile posted this in #help-forum
Australian Freshwater CrocodileOP
export default function RootLayout({
children
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<head>
<Script src="/theme.js" strategy="beforeInteractive" async />
);
}
the script is a simple console.log() and it isn't being run till the entire thing is loaded for some reason, why and how can i fix it