Shopify themes, liquid, logos, and UX
Problem
My navigation flickers on page reloads because of unwanted changes in fonts, a cascade of FOUT.
Target
Font is loaded in the background and navigation is invisible until loaded, FOIT. Latest after the font is cached, this should be quick enough to provide a smooth user experience.
Context
:root {
--font-heading-family: "Outfit", sans-serif;
}
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500&display=block" rel="stylesheet">
.menu-drawer__menu-item.link,
.header__menu-item.link {
font-family: var(--font-heading-family);
font-weight: 500;
}
Visualization
Using network throttling I was able to visualize the sequence, see video below.
https://cdn.shopify.com/videos/c/o/v/1768d20d22ce41dfa95f574d96d3e091.mp4
Questions
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024