Live data from Hacker News

Show HN: Emojicons

emojicons.netlify.app

31–38 of 38 posts

Re: Show HN: Emojicons

#31

Earlier quoted context omitted.

Ouch. We have come to the point where rendering a favicon requires a full web browser rendering engine.

I can't help but think this is a huge step backwards.

Whatever for? It’s a natural consequence of composition of useful elements. It may lead to functionality that you might not design into such a thing if you were making a whole stack from scratch, but the fact that it all works like this is, given HTML and SVG being what they are, categorically a good thing, and is, more generally and subjectively, at least not a bad thing.

SVG can include foreign objects, which is decidedly useful in some contexts; in browsers, that includes HTML, because it’s easy.

A favicon is an image, so it should allow all the usual types of images, which includes SVG. No reason to exclude SVG or any SVG features other than scripting.

(“But now a non-browser can’t render the favicon properly!” you may say. By using , you’re opting into non-standard functionality and shouldn’t expect all SVG renderers to be able to render that part. For completeness, I’ll note that you can provide an alternative representation for engines that don’t support XHTML in SVG with and requiredExtensions.)

Re: Show HN: Emojicons

#32
post #14

Earlier quoted context omitted.

As far as I can see, that's not what this does. The SVG this creates simply includes the emoji codepoint as a text element with a large font size. So what the user sees will still be entirely dependent on their local font. If you want a consistent look across devices and browsers, you need an actual SVG graphic, not an SVG that renders a glyph from your default emoji font.

Ah OK. That greatly reduces my need for this service then.

Yep! Same here. I'm using emojis as icons on my website (https://remotehunt.com) and I don't like that my icons look different on different platforms.

But I haven't found an icon lib that I like as much as emojis.

What's the idea behind this tool then? Name implies it's for using emojis as icons, but I can do that anyways without the ?

Re: Show HN: Emojicons

#33

For those wondering why you'd use this when you could just use an emoji, emoji look different based on the device or browser manufacturers. If your design requires a consistent look then this can be used to create an SVG that looks the same regardless of device or browser.

Nope, it doesn't have a consistent look, because in the end it's still the browser engine rendering the SVG, and asking the OS for the glyph for the particular emoji.

In Windows 7 I get black & white emojis, and the website's favicon is a different shape to the one on Windows 10.

Re: Show HN: Emojicons

#34

Great tool. I've been doing some tests with Emoji / SVG favicons. There's a couple of problems. They don't show up on some old browsers and in google search results. For old browsers there's a solution, which is to have a raster .ico version of the icon at the root of the domain: e.g. example.com/favicon.ico But for the google issue, I'm not sure if that's the solution. Whatever google is using to render svg icons in…

Surely this seems too hacky to be of real use?

Which element is hacky?

The inlined icon feels hacky maybe. Inlining very small files is a good idea I think though. Sending an entire request for only 108 bytes is a bit wasteful.

Re: Show HN: Emojicons

#35
post #8

Neat. Makes me wonder why we can't do complex favicon design using html/css. Imagine being able to enter text and style it using layouts, fonts, colors, etc.

You can. You’ve got all of SVG except for scripting (which is disabled when SVG is loaded as an image, which happens if you use or favicons or such things), which should handle all of your complex favicon desires. If you really want HTML, well, SVG has the tag which you can use to embed HTML (in the XML serialisation, so for once you will need to write instead of ). But pure SVG is likely to be a better idea. Sample…

Cool, didn't know SVG has this capability but man does it look ugly

Re: Show HN: Emojicons

#37

Earlier quoted context omitted.

Ah OK. That greatly reduces my need for this service then.

Yep! Same here. I'm using emojis as icons on my website ( https://remotehunt.com ) and I don't like that my icons look different on different platforms. But I haven't found an icon lib that I like as much as emojis. What's the idea behind this tool then? Name implies it's for using emojis as icons, but I can do that anyways without the ?

it's for using emojis as favicons – these little icons in browser tab headings (where HN has "Y" in an orange square)

Re: Show HN: Emojicons

#38

Earlier quoted context omitted.

I can't help but think this is a huge step backwards.

Whatever for? It’s a natural consequence of composition of useful elements. It may lead to functionality that you might not design into such a thing if you were making a whole stack from scratch, but the fact that it all works like this is, given HTML and SVG being what they are, categorically a good thing, and is, more generally and subjectively, at least not a bad thing. SVG can include foreign objects, which is de…

I like the idea in principal, but my main qualm is the complexity overhead of forcing the client to render something that is ultimately just a small image.

I personally don't see a good reason not to render server side and save page load time, batteries, cpu cycles, etc.

It's definitely a natural consequence of constant improvement of the tech, but I don't like each step piles on technical bloat.

Yes, CPUs and browsers get faster over time, but all those improvements usually lead to more software bloat and cancel each other out. Which is a shame really.

A majority of people in the world use old, non updated phones to access basic websites. Improvements like this can lock people out of portions of the web just because their browser can't handle rendering the favicon.

Post reply on HN