Why does this “Slow network detected…” log appear in Chrome?

后端 未结 18 2323
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 09:36

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 detecte

18条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 10:16

    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

提交回复
热议问题