Skip to content

Commit

Permalink
preload hero image in Layout.astro
Browse files Browse the repository at this point in the history
  • Loading branch information
Harold-Anderson committed Nov 2, 2024
1 parent a1f91c4 commit 90dd6ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const { language, textDirection } = I18N;
<link rel="sitemap" href="/sitemap-index.xml" />
<!-- Comment the line below to disable View Transitions -->
<ViewTransitions fallback="swap" />
<link rel="preload" href="~/assets/images/asian_blue_jacket-16x9.png" as="image"
type="image/png" fetchpriority="high" />
</head>

<body class="antialiased text-default bg-page tracking-tight">
Expand Down

0 comments on commit 90dd6ed

Please sign in to comment.