0
0
Astroframework~5 mins

Font optimization in Astro - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is font optimization in web development?
Font optimization means making fonts load faster and use less data so websites open quickly and look good on all devices.
Click to reveal answer
beginner
Why should you only load the font styles and characters you need?
Loading only needed font styles and characters reduces file size, which speeds up page loading and saves user data.
Click to reveal answer
intermediate
How does using font-display: swap help with font optimization?
It shows a system font first while the custom font loads, so text appears quickly and avoids blank spaces.
Click to reveal answer
intermediate
What is the benefit of preloading fonts in Astro?
Preloading fonts tells the browser to start loading fonts early, improving how fast text appears styled correctly.
Click to reveal answer
beginner
Name one way Astro helps with font optimization.
Astro can automatically optimize Google Fonts by only loading needed font weights and styles, reducing load time.
Click to reveal answer
What does font optimization mainly improve?
APage load speed and user experience
BFont color and size
CBrowser compatibility
DImage quality
Which CSS property helps avoid invisible text while fonts load?
Afont-display: swap
Bfont-weight: bold
Ctext-transform: uppercase
Dfont-style: italic
In Astro, what does preloading fonts do?
ARemoves unused fonts
BStarts font loading early for faster display
CChanges font color
DCompresses font files
Why avoid loading all font weights and styles?
ATo make fonts look bigger
BTo increase font quality
CTo support all browsers
DTo reduce file size and speed up loading
Which is NOT a font optimization technique?
AUsing system fonts as fallback
BPreloading fonts
CLoading all font variants
DUsing font-display: swap
Explain how font-display: swap improves user experience during font loading.
Think about what the user sees while the custom font is still loading.
You got /3 concepts.
    Describe two ways Astro helps optimize fonts on a website.
    Consider how Astro manages font loading and file size.
    You got /3 concepts.