Skip to content

Consider cases where dynamically changing the favicon would be a fun addition #18

Description

@TheYuriG

Consider the following script:

let link = document.querySelector("link[rel~='icon']");
if (!link) {
    link = document.createElement('link');
    link.rel = 'icon';
    document.head.appendChild(link);
}
link.href = 'https://stackoverflow.com/favicon.ico';

With this, you can change a favicon to anything if the ico file is reachable.

I don't know how we could use this, but it's a case to consider. Maybe change the icon based on the player has achieved something? Change dynamically when we change the title? How would this impact the navigation history?
image
Is it possible to implement this without making the user experience heinous?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

EnhancementThis can provide more features to usersUser ExperienceSomething could be done in a better, easier way to understand by users

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions