The browser icon displayed blinks when the hash changes

When I change the hash location using document.location.hash or window.location.hash, most browsers have some kind of "blinking" effect. I need to prevent this, because I am implementing a history plugin based on hash changes, and the flashing effect is just ugly. I know that it works, as I have seen many Ajax-based products with this (especially Google downloads).

This is the code used to display the icon:

<link rel="shortcut icon" href="http://www.mysite.com/favicon.ico" /> 
+4
source share
1 answer

Check out this previous answer to a similar question and see if it works for you:

FireFox 3.6 - 9 drops favicon when changing window.location

+2
source

Source: https://habr.com/ru/post/1442834/


All Articles