Change The Favicon On Your Site – favicon.js

Category: Javascript | June 7, 2023
Authoroxmc
Last UpdateJune 7, 2023
LicenseMIT
Tags
Views181 views
Change The Favicon On Your Site – favicon.js

favicon.js is an ultra-light JavaScript library that allows you to dynamically change the Favicon of the current page displayed in the browser tab and bookmark.

How to use it:

1. Download and insert the favicon.js library.

<script src="./favicon.min.js"></script>

2. Call the favicon function and specify the path to the new Favicon as follows:

favicon('/path/to/favicon.png');

Changelog:

06/07/2023

  • move helper functions/vars to the main function

You Might Be Interested In:


Leave a Reply