开发者

Dynamic favicon when I'm proccessing ajax data

开发者 https://www.devze.com 2023-03-10 10:02 出处:网络
I\'ve got problems when trying to show loading favicon. I\'m taking facebook as example. When you do go to facebook homepage and then click \"Messages\", it does change favi开发者_高级运维con (as rel

I've got problems when trying to show loading favicon.

I'm taking facebook as example. When you do go to facebook homepage and then click "Messages", it does change favi开发者_高级运维con (as reloading/redirecting), but page is still same. How do they do that?


I solved my favicon problem - simple iframe

<body>
  <iframe id="frameFix" src="something.php" name="frameFix" height="0" width="0".
  border="0" ></iframe>
  <a href="new.php" target="frameFix">new thing (page will start to "load")</a>


Using ajax, you can get contents of a url and dump it onto the website without having to leave the page,

as for your first question Favicon its cached and it's not easy to change it dynamically, as the user must force refresh, but my advise is that a favicon its meant to be the same to identify your website, to each user while the have minimised it, therefore if you keep changing them you lose your websites identity kinda thing :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号