You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Webfont加载时保持Bootstrap Glyphicons可见问题求助

Webfont加载时Bootstrap Glyphicons可见性问题求助

我试了多种代码方案,却始终无法解决Webfont加载时保持Bootstrap Glyphicons可见的问题,Google Pagespeed仍显示相同的提示信息。我认为当前使用的代码是正确的,希望有人能指出我遗漏的地方。

当前使用的代码如下:

<link rel="preload" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.woff2" as="font" type="font/woff2" crossorigin>
<style>
    @font-face {
    font-display: swap;
    font-family: 'Glyphicons Halflings';
    src: url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.woff2') format('woff2');
}
</style>

相关截图:
Google Pagespeed提示截图

内容的提问来源于stack exchange,提问作者Sam Salim

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.17 09:55:22