diff --git a/src/optimize.cls.php b/src/optimize.cls.php index 50025f909..83c91435f 100644 --- a/src/optimize.cls.php +++ b/src/optimize.cls.php @@ -601,11 +601,11 @@ private function _async_ggfonts() $subset = empty($qs['subset']) ? '' : ':' . $qs['subset']; foreach (array_filter(explode('|', $qs['family'])) as $v2) { - $families[] = $v2 . $subset; + $families[] = Str::trim_quotes($v2 . $subset); } } - $script .= '"' . Str::trim_quotes(implode('","', $families)) . ($this->_conf_css_font_display ? '&display=swap' : '') . '"'; + $script .= '"' . implode('","', $families) . ($this->_conf_css_font_display ? '&display=swap' : '') . '"'; $script .= ']}};';