Archived topic
Cumulative layout shift using local fonts.
16 replies · Started by Dominique on January 13, 2021
That's something I'm playing with, but I'm also keeping a close eye on what the Gutenberg team is doing, as it's growing considerably at a very fast rate :)
USE font-display: optional
or also font-display: auto;
you can try one of this one if not working good:
block - hide text for up to three seconds while waiting for the web font, and always swap in the web font when it loads
swap - show text as soon as possible, and always swap in the web font when it loads
fallback - hide text for up to 100ms, then only swap in the web font if it loads within three seconds
optional - hide text for up to 100ms, then only use the web font if it is available - never swapping
