HTML– 子文件夹中的favicons的任何问题?

HTML– 子文件夹中的favicons的任何问题?,第1张

概述将favicon和apple touch图标移动到子文件夹会有问题吗?喜欢:<link rel='shortcut icon' href='/images/favicons/favicon.ico'> <link rel='apple-touch-icon' href='/images/favicons/apple-touch-icon.p

将favicon和apple touch图标移动到子文件夹会有问题吗?
喜欢:

最佳答案是的,有些浏览器在开始下载HTML文档的同时开始下载/favicon.ico.如果没有文件,您将在服务器日志中获得额外的404,并且当浏览器识别出其他位置的图标时,浏览器将不得不发出额外的http请求.

雅虎Best Practices for Speeding Up Your Web Site引用:

The favicon.ico is an image that stays
in the root of your server. It’s a
necessary evil because even if you
don’t care about it the browser will
still request it,so it’s better not
to respond with a 404 Not Found. Also
since it’s on the same server,cookies
are sent every time it’s requested.
This image also interferes with the
download sequence,for example in IE
when you request extra components in
the onload,the favicon will be
downloaded before these extra
components.

总结

以上是内存溢出为你收集整理的HTML – 子文件夹中的favicons的任何问题?全部内容,希望文章能够帮你解决HTML – 子文件夹中的favicons的任何问题?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1120151.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)