HTML & CSS · Senior · Question 17 of 75

Which techniques reduce the weight and performance impact of a custom web font?

Explanation

WOFF2 compresses best. Subsetting removes unused glyphs (e.g. keeping only Latin and Cyrillic), and unicode-range lets the browser download only the subsets it needs. preload speeds up the main weight, font-display removes invisible text. A variable font replaces several weight files with one. In Next.js, next/font handles much of this.

Further reading

Problem with a question

HTML & CSS · Senior · question 17

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz