Hacker News new | ask | show | jobs
by Dependance 110 days ago
Wow, what the hell was that javascript tab change ? Not sure if I hated or loved it, but that was the first time I have seen that.
1 comments

visibilitychange API, and websites are allowed to modify their own title and favicon programatically.

Favicon can be part of the DOM ever since icons via ~~meta~~ link tags were introduced, because they can be more hi-res than the default favicon.ico file.

I've never thought about the ability to swap it dynamically though, although I've seen some site do that before.

https://developer.mozilla.org/en-US/docs/Web/API/Document/vi...

https://developer.mozilla.org/en-US/docs/Web/API/Document/ti...

https://html.spec.whatwg.org/multipage/links.html#rel-icon