Disabling My Favicon: How and Whyby@zachflower
3,052 reads

Disabling My Favicon: How and Why

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Most web browsers will try to request a favicon anyway. This means that every page load is accompanied by a second request for a 'favicon.ico` file that will *always* come back as `Not Found` This makes sense, as the `#` ultimately gets interpreted by the browser as `https://://flower.codes/#` and the same is true for pretty much every other character you might want to try (spaces, question marks, etc) Enter Data URLs. By omitting the icon tag, we can eliminate the second request without inducing any errors in the console.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Disabling My Favicon: How and Why
Zachary Flower HackerNoon profile picture

@zachflower

Zachary Flower

Engineering Leader | Freelance Writer | Occasional Programmer | Impostor


Receive Stories from @zachflower

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!