@font-face加载时间
我刚刚完成了一个网站的开发,我在 H 标签和正文文本中使用 @font-face...
http:// /www.futuremobilitynow.org/
页面加载时间很好,但文本仅在几秒钟后出现。
我可以做什么来避免这种情况?有没有办法缓存字体?
预先感谢您的宝贵时间。
Jk_
I just finished the development of a website where I use @font-face for both H tag and body text...
http://www.futuremobilitynow.org/
The page loading time is fine however the text only appears after few seconds.
What could I do to avoid this ? It there a way of caching the font ?
Thanks in advance for your time.
Jk_
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要认为这与字体的加载有任何关系。
看起来你的 JS 全部加载在
header
中(还有一些在body
中),导致它在你的body
之前加载。尝试将其放在页脚中,这样其他所有内容都会在 JS 之前加载,并且应该更早显示。Don't think it has anything to do with the loading of the font.
Seems like your JS is all loaded in the
header
(and some in thebody
as well), resulting in it loading before yourbody
. Try putting it in the footer, that way everything else will be loaded before the JS and should show up earlyer.