Skip to content

Commit

Permalink
enhance: preload playfair semibold on grapher pages
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Oct 11, 2023
1 parent d987bc6 commit bf38e28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions site/GrapherPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ window.Grapher.renderSingleGrapherOnGrapherPage(jsonConfig)`
))
)
)}
<link
rel="preload"
href="/fonts/PlayfairDisplayLatin-SemiBold.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
</Head>
<body className={GRAPHER_PAGE_BODY_CLASS}>
<SiteHeader baseUrl={baseUrl} />
Expand Down
7 changes: 0 additions & 7 deletions site/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@ export const Head = (props: {
type="font/woff2"
crossOrigin="anonymous"
/>
<link
rel="preload"
href="/fonts/PlayfairDisplayLatin-Regular.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
<meta property="fb:app_id" content="1149943818390250" />
<meta property="og:url" content={canonicalUrl} />
<meta property="og:title" content={pageTitle} />
Expand Down

0 comments on commit bf38e28

Please sign in to comment.