为什么这个“慢网络检测到......”日志出现在Chrome中? [英] Why does this "Slow network detected..." log appear in Chrome?

查看:317
本文介绍了为什么这个“慢网络检测到......”日志出现在Chrome中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到这个 info log 开始出现在Google Chrome Dev(Version 55.0.2883.18 dev)中,我无法想象为什么。


检测到缓慢的网络。加载时会使用回退字体:

解决方案

这意味着网络速度很慢,而Chrome正在用本地回退替换网页字体(使用 @ font-face 规则加载)。



默认,在下载字体之前,使用网络字体呈现的文本是不可见的(不可见文本闪光灯 )。通过这种改变,慢速网络上的用户可以在内容加载时开始阅读,而不是在几秒钟内查看空白页面。




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.

这篇关于为什么这个“慢网络检测到......”日志出现在Chrome中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆