Lurker News
We had some free time during the Chinese New Year vacation (we live in Taiwan). So I thought it would be fun to work with my daughter on a little web project.

She did all the drawings. I digitized them and added them to the page as inline SVGs. Then I wrote the code. Nothing fancy — it's just one HTML page with a few links. But I like the end result (yes, I'm 100% biased): https://kevin.tw
Fun technical facts: the page is entirely self-contained (except the favicon). It doesn't have any JavaScript at all. And it weighs 35Kb total (52Kb if you include the favicon).

Comments (182) 88 threads

Show all comments

Showing thread 2 of 88

pests2 replies#
I'm sure you know but you could inline the favicon with a data: uri scheme if you wanted to go completely self-contained

samatman1 reply#
I for one 'knew' this but had forgotten, as is so easy with this kind of trivia. These little pro tips are a big part of what keep me coming back to the site, and there's always someone who didn't know.

The disclaimer is of course polite, I'm just saying thanks.

pests#
I originally added that phase for polite reasons too, hope I didn't come off as preachy or egotistical. I always fret about teaching topics like these lest I come off as a know-it-all.
sdfhbdf2 replies#
I'm pretty sure browsers are gonna request /favicon.ico anyway.
pests#
Browsers gotta browse.

They can request but you don't have to respond.

abathur1 reply#
It vexes me (though, not as much as the apple variants).

The date the last ~active browser stops requesting favicon.ico if one was already inlined would make a good betting pool.

pests#
Eh, its probably never going to happen. I'm sure less than 1% of sites would serve a favicon via data uri not to mention racing the favicon along with the domain on first visits speeds up the process.

Favicons are already transferred a lot. Back in the day having notifications / unread counts in the favicon itself was very common. It would show up in the tab bar and also the bookmark icon so it was a quick micro-communication channel with a website before all the modern things.