Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
<script nonce="aem" src="/scripts/aem.js" type="module"></script>
<script nonce="aem" src="/scripts/scripts.js" type="module"></script>
<link rel="stylesheet" href="/styles/styles.css"/>
<!-- Adobe Fonts (quasimoda) for the nav -->
<link rel="stylesheet" href="https://use.typekit.net/mvi1kov.css"/>

3 changes: 3 additions & 0 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ function buildHeroBlock(main) {
*/
async function loadFonts() {
await loadCSS(`${window.hlx.codeBasePath}/styles/fonts.css`);
// Adobe Fonts (quasimoda) for the nav; loaded async so it never blocks LCP,
// the Roboto fallback in fonts.css covers text until this swaps in
loadCSS('https://use.typekit.net/mvi1kov.css');
try {
if (!window.location.hostname.includes('localhost')) sessionStorage.setItem('fonts-loaded', 'true');
} catch (e) {
Expand Down