Skip to content

Commit

Permalink
Work around FOUC in Astro production builds
Browse files Browse the repository at this point in the history
  • Loading branch information
john-kurkowski committed May 4, 2024
1 parent 9f02b74 commit 9356330
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/layouts/base.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
import { ViewTransitions } from 'astro:transitions'
import '../../css/main.css'
import Footer from './Footer.astro'
Expand All @@ -17,6 +19,7 @@ const siteMetadata = {

<html class='bg-secondary' lang='en-US'>
<Seo frontmatter={frontmatter} siteMetadata={siteMetadata} />
<ViewTransitions />
<body>
<div class='flex min-h-full flex-col content-between font-serif'>
<div class='flex-grow bg-background'>
Expand Down

0 comments on commit 9356330

Please sign in to comment.