Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Seo 确保文本在webfont加载期间保持可见-TypeKit PageSpeed Insights_Seo_Pagespeed_Pagespeed Insights_Typekit - Fatal编程技术网

Seo 确保文本在webfont加载期间保持可见-TypeKit PageSpeed Insights

Seo 确保文本在webfont加载期间保持可见-TypeKit PageSpeed Insights,seo,pagespeed,pagespeed-insights,typekit,Seo,Pagespeed,Pagespeed Insights,Typekit,我有一个网站,谷歌PageSpeed Insights一直在告诉我 确保文本在webfont加载期间保持可见 对于此代码 因此,我研究并找到了一些解决这个问题的方法,因此我更新了下面的代码 <link rel="stylesheet" href="https://use.typekit.net/dgp2bhj.css?family=proxima-nova&display=swap"> 通过在上述代码中添加,?family=pro

我有一个网站,谷歌PageSpeed Insights一直在告诉我

确保文本在webfont加载期间保持可见

对于此代码

因此,我研究并找到了一些解决这个问题的方法,因此我更新了下面的代码

<link rel="stylesheet" href="https://use.typekit.net/dgp2bhj.css?family=proxima-nova&display=swap">

通过在上述代码中添加,
?family=proxima nova&display=swap

但是Google PageSpeed Insights仍然抛出了相同的错误

我尝试过其他一些方法,比如在
.htaccess
中启用缓存,比如
ExpiresByType text/css“access 1个月”
等。。但这个错误仍然存在

有人能指导我在这里该做什么吗


非常感谢。

我找不到任何有关typekit的“?family=proxima nova&display=swap”之类的文档。如果打开,您将看到字体显示设置为自动

但是,您可以编辑typekit配置,将显示器设置为交换,请参阅本文:

如果您无法控制typekit,可以在本地css文件中将显示设置为交换:

@font-face {
            font-family: 'proxima-nova';
            src: local('proxima-nova'), url(https://use.typekit.net/dgp2bhj.css);
            font-display: swap;
 }

我没有控制权,因为我正在调用第三方css url。我试着在一个本地css文件中添加一个css,这个文件在我的typekit css文件之后被调用。但问题仍然存在。
这就是我添加typekit css的方式。。然后在我的
developer.css
文件中,我添加了您提供的代码,但问题仍然存在。