gpt4 book ai didi

html - ICO 需要永远加载

转载 作者:太空宇宙 更新时间:2023-11-04 14:23:56 25 4
gpt4 key购买 nike

我如何告诉网页我不想要 ICO,这样它就不会浪费加载时间来寻找它?

<link rel="icon" type="images/png" href="" />

如果它被省略,那么它看起来也是!

最佳答案

嗯...一个可能的技巧是将它指向本地位置:

<link rel="icon" type="images/png" href="http://127.0.0.1/no_icon.ico" />

它仍然看起来,但 127.0.0.1 是根据定义的本地主机,因此不涉及网络旅行以发现没有任何内容可加载。

来自 RFC 5735: Special-Use IPv4 Addresses :

127.0.0.0/8 - This block is assigned for use as the Internet host loopback address. A datagram sent by a higher-level protocol to an address anywhere within this block loops back inside the host. This is ordinarily implemented using only 127.0.0.1/32 for loopback. As described in [RFC1122], Section 3.2.1.3, addresses within the entire 127.0.0.0/8 block do not legitimately appear on any network anywhere.

关于html - ICO 需要永远加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4771744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com