Exercise 1 solution: a font-loading plan for a small shop's website =================================================================== A sample answer (yours may differ; what matters is that every choice has a reason). The brief: a bakery website with a shop name, product descriptions and a price list. Performance matters because many visitors arrive on phones. The plan -------- Heading font : one web font, a serif, in a single bold weight (the shop name and product names) Body font : the visitor's own system sans-serif (descriptions, prices, hours) Why: the body text is most of the page and must appear instantly, so it uses a system font and costs zero downloads. Only the headings carry the shop's personality, so only they justify a download. Files to ship ------------- heading-bold.woff2 one file, roughly 25-35 KB (check) after subsetting to Latin No other font files. No TTF or OTF fallback files: WOFF2 is supported by all current major browsers (check), so a second format only adds maintenance. Loading behaviour ----------------- font-display: swap Reason: the page shows readable text at once in the fallback and swaps when the font arrives. For a shop, showing the opening hours quickly is more important than showing them in the exact font. Fallback stack (heading): "Bakery Serif", Georgia, "Times New Roman", serif Fallback stack (body): system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif Reducing the swap jump ---------------------- The fallback (Georgia) is a little wider than the web serif, so the headings would reflow on swap. Add size-adjust (and, if wanted, ascent-override) to a fallback @font-face so that the fallback occupies nearly the same space (check the exact values by testing in the browser). Preload ------- Only for this one file, because it is needed on every page above the fold. What I rejected --------------- Loading regular, bold, italic and bold italic of a web body font: four files for text that a system font renders perfectly well. The cost (extra requests, a flash of different text) is larger than the benefit.