大网数据广告活动
网站运营与故障问答

Is setting Priority Hint fetchpriority=low for favicon.svg and/or site.webmanifest a good idea for website speed / Core Web Vitals?

· 52CE 我爱测

I've noticed in a chromium desktop browser web console that the default priority ( fetchpriority ) for favicon.svg and site.webmanifest as assigned by the browser is high . Would it be a good idea to set fetchpriority=low for the…

问题原文

原帖链接 · adrelanos · CC BY-SA 4.0

I've noticed in a chromium desktop browser web console that the default priority (fetchpriority) for favicon.svg and site.webmanifest as assigned by the browser is high.

Would it be a good idea to set fetchpriority=low for these?

已采纳解答

原帖链接 · Mike Ciffone · CC BY-SA 4.0

Chrome should (without any specification set) load SVG documents one-at-a-time in the layout-blocking phase, and fetch them with a priority of low. See the table on Web.dev's page about priority hints that shows how most resources are currently prioritized and sequenced in Chrome.

However, priority computation logic can be affected by many factors such as the order that resources are referenced in your HTML. I'd imagine your favicon and webmanifest occur very early. Perhaps that's why. I would test it.

The combined file size of both ought to be very small in the first place, though. So I find it unlikely that you would see a significant difference in your Core Web Vitals scores by setting their fetchpriority to low.

Personally, I would let the browser decide and save these hints for more exceptional cases. In general, I recommend using the resource hint sparingly, as over use can result in degrading performance.

A scenario where it would be objectively worth while is when you have an image presented above the fold (think LCP) and want to signal that it's important to your UX early in the loading process. So you'd set fetchpriority to high.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2022-12-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。