Developer
This commit is contained in:
@@ -90,6 +90,7 @@ export default function RootLayout({
|
||||
return (
|
||||
<html
|
||||
lang="de"
|
||||
data-preloader="active"
|
||||
className={`${inter.variable} ${cormorant.variable} h-full antialiased`}
|
||||
>
|
||||
<body className="flex min-h-full flex-col">
|
||||
@@ -100,15 +101,6 @@ export default function RootLayout({
|
||||
crossOrigin="anonymous"
|
||||
strategy="beforeInteractive"
|
||||
/>
|
||||
<Script id="preloader-session" strategy="beforeInteractive">
|
||||
{`try {
|
||||
const hasSeenPreloader = sessionStorage.getItem("entscheidomat:preloader-seen") === "1";
|
||||
const isMobile = window.matchMedia("(max-width: 767px)").matches;
|
||||
document.documentElement.dataset.preloader = hasSeenPreloader || isMobile ? "cached" : "active";
|
||||
} catch {
|
||||
document.documentElement.dataset.preloader = window.matchMedia("(max-width: 767px)").matches ? "cached" : "active";
|
||||
}`}
|
||||
</Script>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{
|
||||
|
||||
Reference in New Issue
Block a user