Hi is there any reason why favicon.ico is not loaded in deployed site ?
I have in my index.html head
<link rel="icon" href="images/favicon.ico" />
When loading the index.html from my public dir the icon loads fine.
However after 'firebase deploy' the icon does not load.
Any help ?
For some reason having the icon in a sub dir failed. Moving it to the root directory solved this issue.
The answer is just wait for a while, or using another web browser. I just had the same thing with Chrome, but the icon is displayed well on Firefox or Brave. Happy coding!
The issue occurs because your browser cached the old icon and still displays it. Hard reload your webpage to fix, in Chrome cmd+shift+R #mac OR ctrl+shift+R # windows/Linux
You may try below:
Your icon should be inside the public folder:
yourproject_name/public/favicon.ico
and use this in your index.html file
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
Happy coding!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With