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

Disabling My Favicon: How and Why

by Zachary Flower2mMay 16th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Zachary Flower

Zachary Flower

@zachflower

Engineering Leader | Freelance Writer | Occasional Programmer | Impostor

About @zachflower
LEARN MORE ABOUT @ZACHFLOWER'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Zachary Flower HackerNoon profile picture
Zachary Flower@zachflower
Engineering Leader | Freelance Writer | Occasional Programmer | Impostor

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
L O A D I N G
. . . comments & more!