Live data from Hacker News

SVG favicons have some cool benefits

austingil.com

71–75 of 75 posts

Re: SVG favicons have some cool benefits

#71
post #69
post #51

Earlier quoted context omitted.

Both Chrome and Firefox (maybe others) have a separate cache for favicons that acts differently than the regular browser cache. I don't know if it caches data uris but it does cache more aggressively. I know some places like Stackoverflow add a cache-busting parameter to favicon.ico to get past it.

How would a data uri exactly get cached? It’s served inline with every page request.

I know it sounds funny, but they want a favicon cache for things like the bookmarks page and the default "blank" Chrome page, where there's no "page" present. So it's possible they extract the uri data into that cache.

Re: SVG favicons have some cool benefits

#72

People keep on talking about (prefers-color-scheme: dark), but it isn’t what they want it to be—never has been, and probably never will be (though I will admit that prefers-color-scheme could theoretically be special-cased for favicon rendering). For example, in Firefox, I use the dark theme for the UI, but that’s completely unrelated to the content, and prefers-color-scheme matches the content, not the chrome. Conte…

That sounds like a browser bug - if its rendering the icon in the browser chrome it should also use the color scheme setting matching the chrome.

It’s not a bug, it’s people using it to mean something it doesn’t mean.

Re: SVG favicons have some cool benefits

#73

Earlier quoted context omitted.

> For example, in Firefox, I use the dark theme for the UI, but that’s completely unrelated to the content, and prefers-color-scheme matches the content, not the chrome. Content I keep normal, light. Of note is https://bugzilla.mozilla.org/show_bug.cgi?id=1529323 which is requesting to change this behaviour to align prefers-color-scheme to the UI theme if there is no overriding behaviour. I prefer this because now ra…

> There's no user friendly way to set firefox's prefer-color-scheme: dark if the OS does not have the capabilities to do that. And even if the OS does have that capability, Firefox will ignore it for prefers-color-scheme if you have enabled enhanced tracking protection. Instead, Firefox will always claim prefers-color-scheme: light - the least they could have done is indicate no preference.

(prefers-color-scheme: no-preference) got killed off because it simply wasn’t useful in practice.

Re: SVG favicons have some cool benefits

#75

Earlier quoted context omitted.

> There's no user friendly way to set firefox's prefer-color-scheme: dark if the OS does not have the capabilities to do that. And even if the OS does have that capability, Firefox will ignore it for prefers-color-scheme if you have enabled enhanced tracking protection. Instead, Firefox will always claim prefers-color-scheme: light - the least they could have done is indicate no preference.

(prefers-color-scheme: no-preference) got killed off because it simply wasn’t useful in practice.

The only reason its not useful is because browsers did not implement it or removed their implementation. There is even one use in my comment: specifying not providing false information when the browser does not want to disclose any more identifying bits.
Post reply on HN