Answer the question
In order to leave comments, you need to log in
How to connect a second font with minimal load?
Hello, in my wordpress theme I connected one font in functions:
function load_fonts()
{
wp_register_style('et-googleFonts',
'https://fonts.googleapis.com/css?family=Roboto:100,900&subset=cyrillic,cyrillic-ext'); wp_enqueue_style( 'et-googleFonts');
}
add_action('wp_print_styles', 'load_fonts');
Answer the question
In order to leave comments, you need to log in
The 2nd font is usually not critical. I think wp will affect the download speed more than the second font.
And really freeze. What is the problem? Yes, and the idea to take out the font only where it is needed is sound.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question