Prevent Litespeed cache from messing up fonts
This commit is contained in:
parent
1bbafd6aad
commit
a5ff77095d
@ -1205,9 +1205,9 @@ if ( ! function_exists( 'fictioneer_output_head_fonts' ) ) {
|
||||
$custom_fonts_href = get_template_directory_uri() . '/cache/bundled-fonts.css' . $cache_bust;
|
||||
|
||||
// Start HTML ---> ?>
|
||||
<link rel="stylesheet" id="base-fonts-stylesheet" href="<?php echo $base_fonts_href; ?>" media="print" onload="this.media='all';">
|
||||
<link rel="stylesheet" id="base-fonts-stylesheet" href="<?php echo $base_fonts_href; ?>" data-no-optimize="1" media="print" onload="this.media='all';">
|
||||
<noscript><link rel="stylesheet" href="<?php echo $base_fonts_href; ?>"></noscript>
|
||||
<link rel="stylesheet" id="bundled-fonts-stylesheet" href="<?php echo $custom_fonts_href; ?>" media="print" onload="this.media='all';">
|
||||
<link rel="stylesheet" id="bundled-fonts-stylesheet" href="<?php echo $custom_fonts_href; ?>" data-no-optimize="1" media="print" onload="this.media='all';">
|
||||
<noscript><link rel="stylesheet" href="<?php echo $custom_fonts_href; ?>"></noscript>
|
||||
<?php // <--- End HTML
|
||||
} else {
|
||||
@ -1215,7 +1215,7 @@ if ( ! function_exists( 'fictioneer_output_head_fonts' ) ) {
|
||||
$full_fonts_href = get_template_directory_uri() . '/css/fonts-full.css' . $cache_bust;
|
||||
|
||||
// Start HTML ---> ?>
|
||||
<link rel="stylesheet" href="<?php echo $full_fonts_href; ?>" media="print" onload="this.media='all';">
|
||||
<link rel="stylesheet" href="<?php echo $full_fonts_href; ?>" data-no-optimize="1" media="print" onload="this.media='all';">
|
||||
<noscript><link rel="stylesheet" href="<?php echo $full_fonts_href; ?>"></noscript>
|
||||
<?php // <--- End HTML
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user