We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3838efe commit f1311d2Copy full SHA for f1311d2
2 files changed
.changeset/thick-walls-open.md
@@ -0,0 +1,5 @@
1
+---
2
+'astro': patch
3
4
+
5
+Updates the `<Font />` component so that preload links are generated before the style tag if `preload` is passed
packages/astro/components/Font.astro
@@ -23,10 +23,10 @@ if (!data) {
23
}
24
---
25
26
-<style set:html={data.css}></style>
27
{
28
preload &&
29
data.preloadData.map(({ url, type }) => (
30
<link rel="preload" href={url} as="font" type={`font/${type}`} crossorigin />
31
))
32
+<style set:html={data.css}></style>
0 commit comments