为什么这个“慢网络检测到......”日志出现在Chrome中? [英] Why does this "Slow network detected..." log appear in Chrome?
问题描述
我注意到这个 info log
开始出现在Google Chrome Dev(Version 55.0.2883.18 dev)中,我无法想象为什么。
检测到缓慢的网络。加载时会使用回退字体:
解决方案这意味着网络速度很慢,而Chrome正在用本地回退替换网页字体(使用
@ font-face
规则加载)。
默认,在下载字体之前,使用网络字体呈现的文本是不可见的(不可见文本闪光灯 )。通过这种改变,慢速网络上的用户可以在内容加载时开始阅读,而不是在几秒钟内查看空白页面。
- 相关的Chrome问题: https://bugs.chromium.org/p /铬/问题/细节?ID = 578029 。 (在3G连接中发生这种行为的更改于9月份降落;这应该是您收到该消息的原因。)
- 相关源代码: https://chromium.googlesource.com/chromium/src/third_party/ + / master / WebKit / Source / core / css / RemoteFontFaceSource.cpp#74
I noticed this
info log
began to appear in Google Chrome Dev (Version 55.0.2883.18 dev) and I can't imagine why.Slow network is detected. Fallback font will be used while loading: http://font-path.extension`
It appears on all websites that use
font-face
, even on local pages and Chrome extensions.解决方案This means the network is slow, and Chrome is replacing a web font (loaded with a
@font-face
rule) with a local fallback.By default, the text rendered with a web font is invisible until the font is downloaded ("flash of invisible text"). With this change, the user on a slow network could start reading right when the content is loaded instead of looking into the empty page for several seconds.
- Related Chrome issue: https://bugs.chromium.org/p/chromium/issues/detail?id=578029. (A change enabling this behavior for 3G connections landed in September; this should be the reason you got the message.)
- Related source code: https://chromium.googlesource.com/chromium/src/third_party/+/master/WebKit/Source/core/css/RemoteFontFaceSource.cpp#74
这篇关于为什么这个“慢网络检测到......”日志出现在Chrome中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!