4 ms·
This is absolutely mortifying, how much metadata do pages have to share with browsers to do that one weirdly specific thing!?
by grenoire 7y ago
This is absolutely mortifying, how much metadata do pages have to share with browsers to do that one weirdly specific thing!?
- krapp 7y agoWhat weirdly specific thing? You don't have to put anything in a head tag, you don't even need a head tag, but it's a good idea to have one and to at least add a charset meta tag. Everything is optional, though. The entire point of it is for you to share metadata about your page with the browser.
- munk-a 7y agoMy favorite weird thing that happens without certain <head> tags is the ten billion attempts to get a favicon. I don't know if browsers still try all those silly favicon requests if none is defined, but it was saddening to watch that grow to be wide spread previously.
- shakna 7y agoYes, they all still issue several favicon requests, so far as I'm aware. Having one, instead of returning a 404, can speed up the page load. Which makes 0 sense.
- dyanaraps 7y agoThis is how I avoid this issue entirely: <link href=data:, rel=icon> This is the smallest possible "null" favicon. It causes the browser to display nothing and ensures 0 HTTP requests for the favicon!
- SquareWheel 7y agoDoes the browser display the generic "no favicon" icon, or is it just completely blank? I like the idea.
- dyanaraps 7y agoIt's completely blank (tested in Firefox and Chromium).
- deleted 7y ago[deleted]