Firefox在预加载字体上显示警告,尽管它们在第一秒内就被使用了
我们使用以下代码在本地预加载(出于pagespeed原因)Google字体:Firefox在预加载字体上显示警告,尽管它们在第一秒内就被使用了,firefox,pagespeed,Firefox,Pagespeed,我们使用以下代码在本地预加载(出于pagespeed原因)Google字体: <link rel="preload" href="/css/google-fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2" as="font" crossorigin> <style type="text/css" media="screen, print"&
<link rel="preload" href="/css/google-fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2" as="font" crossorigin>
<style type="text/css" media="screen, print">
@font-face {
font-family: 'Source Sans Pro';
font-display: swap;
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(/css/google-fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
</style>
Deepl Translation的内容如下:
The resource at "http://localhost:8080/css/google-fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2" was preloaded ("link-preload") but not used within the first seconds. It is recommended to check if all preload attributes are set correctly.
我已经检查了stackoverflow并发现:
The resource at "http://localhost:8080/css/google-fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2" was preloaded ("link-preload") but not used within the first seconds. It is recommended to check if all preload attributes are set correctly.