News for hackers. Stuff that matters.
Re:Favico.js – Animated favicons by vortico on Saturday January 23, 2016 @07:21PM (#10960821)
On Firefox on Linux, the favicon flickers if changed quickly in this example.

The webcam is a hilarious example. Reminds me of this 1-dimensional video game you can play in your address bar. http://glench.com/hash/

Re:Favico.js – Animated favicons by Too on Sunday January 24, 2016 @03:46AM (#10961962)
Once the images are loaded it doesn't flicker, if you press the +1 button a few times it flickers but when you go back with -1 everything is already loaded and it doesn't flicker.
Re:Favico.js – Animated favicons by nailer on Sunday January 24, 2016 @05:47AM (#10962155)
Maybe use 'new Image().src' to preload the images?
Re:Favico.js – Animated favicons by pmontra on Sunday January 24, 2016 @02:48AM (#10961866)
Video and webcam flicker too.
Re:Favico.js – Animated favicons by zamalek on Sunday January 24, 2016 @03:13AM (#10961912)
On Windows as well. Seems to be a general Firefox problem.
Re:Favico.js – Animated favicons by buro9 on Sunday January 24, 2016 @06:49AM (#10962265)
What I want from favicons is SVG support.

It makes so much sense it hurts, especially when we think of desktop links, home page pins, etc.

The whole "bundle multiple sizes of animated files into one container" is crazy when they are nearly always different resolutions of precisely the same file.

If we have SVG we could modify the SVG at runtime to have it display additional data really easily.

As for video in favicons... kill me now. SVGs and a strict limit on favicon sizes would be good (enforced by browsers, ditch anything over 50KB - it should be more than enough!).

A nice bug I saw recently was that a server could be instructed to send an infinitely sized favicon, and the browser would happily consume it. Nice way to drain a phone battery, use all of the connection bandwidth, and just to play havoc.

What I want from favicons:

1) SVG

2) SVG support for icons in all major OS's so that desktop links and homepage links just work as SVG

3) Max-size enforced by browsers

Re:Favico.js – Animated favicons by malandrew on Sunday January 24, 2016 @10:24AM (#10962732)
Do SVGs really perform better than pixel are for what favicons are used for? I was under the impression that vector graphics performs poorly at small sizes.
Re:Favico.js – Animated favicons by taspeotis on Saturday January 23, 2016 @07:01PM (#10960750)
Atlassian Bamboo does this really well: if your tab is open on a build that's in progress the favicon will represent how far along building it is.
Re:Favico.js – Animated favicons by tyre on Saturday January 23, 2016 @07:29PM (#10960848)
Great example of a micro-library. Small, does one thing and does it well.
Re:Favico.js – Animated favicons by sams99 on Sunday January 24, 2016 @02:31AM (#10961833)
Side note on fancy favicon stuff ... be sure to check out:

https://github.com/discourse/discourse/blob/master/app/contr...

You want your favicon asset on the same domain serving the page otherwise there is a bunch of CORS work.

Re:Favico.js – Animated favicons by sergiotapia on Saturday January 23, 2016 @07:46PM (#10960903)
It has both MIT and GPL licenses.

For us non-lawyers, what does this mean?

Re:Favico.js – Animated favicons by bendykstra on Saturday January 23, 2016 @08:04PM (#10960962)
You get to choose the license that works best for you.

http://savannah.gnu.org/maintenance/DualLicensing/

Re:Favico.js – Animated favicons by conradk on Saturday January 23, 2016 @08:10PM (#10960981)
Isn't MIT compatible with GPL though ? If it is, what's the point of having both ?
Re:Favico.js – Animated favicons by billyhoffman on Saturday January 23, 2016 @10:44PM (#10961368)
From a business's perspective, the MIT license is similar the BSD license: you can incorporate MIT licensed code into commercial products/proprietary code and only have to include copyright notices. GPL has source code disclosure implications which can be deal breakers for some businesses.
Re:Favico.js – Animated favicons by gruez on Sunday January 24, 2016 @12:47AM (#10961638)
I think he was asking why anyone would choose GPL, considering MIT is more permissive in every way.
Re:Favico.js – Animated favicons by simple10 on Sunday January 24, 2016 @01:04AM (#10961667)
Making something dual licensed allows for the next dev to make modifications and then release those mods under his/her preferred license. You could make a mod of favicon.js and release your mod under GPL to ensure any further modification of your code and your favicon.js branch stays under GPL.
Re:Favico.js – Animated favicons by vbernat on Sunday January 24, 2016 @01:39AM (#10961731)
It's possible to release a mod under GPL when the original license is just MIT.
Re:Favico.js – Animated favicons by franze on Sunday January 24, 2016 @04:30AM (#10962047)
reminds me, i once coded a webcam2favicon streamer in literate coffeescript https://github.com/franzenzenhofer/webcam2favicon so basically the readme is the code.

it's from 2013, still works in FF, chrome seems to have changed the way they handle changes in the favicon.

Re:Favico.js – Animated favicons by amatriain on Tuesday January 26, 2016 @06:03AM (#10972824)
It is a very nice library. However be aware that it currently has issues in chrome if your page has several icons: https://github.com/ejci/favico.js/issues/85
Re:Favico.js – Animated favicons by dvdplm on Saturday January 23, 2016 @08:47PM (#10961094)
This is quite lovely. Very good job. :)

I for one would be very curious to read about how this works (too lazy to read code right now!)...

Re:Favico.js – Animated favicons by Mahn on Saturday January 23, 2016 @10:15PM (#10961305)
Didn't read the code of this specific project but if recall correctly, you can change the favicon by setting it in the dom to the base64 representation of the icon data any time. From there, generating animations is just a question of filling pixels data with the canvas API and getting the resulting base64 string out of said API as well. Obviously all of this works only if the browser is relatively modern.
Re:Favico.js – Animated favicons by herbst on Wednesday January 27, 2016 @04:00AM (#10979024)
There is not a single Favicon visible for me on this site. Guess they are all loaded remotely or something. No idea. Chrome / Ublock Origin / Privacy Badger.
Re:Favico.js – Animated favicons by Dylan16807 on Saturday January 23, 2016 @07:14PM (#10960794)
Why not set your favicon to a gif?
Re:Favico.js – Animated favicons by rpgmaker on Saturday January 23, 2016 @10:21PM (#10961318)
Animated favicons are a huge distraction and suck. From the looks of it this project aims to make the favicon display useful information like notification counts instead of animated loops.
Re:Favico.js – Animated favicons by hanniabu on Saturday January 23, 2016 @08:17PM (#10961007)
Does that work? I thought gifs weren't valid format for a favicon?
Re:Favico.js – Animated favicons by zeta0134 on Saturday January 23, 2016 @08:27PM (#10961037)
They aren't, but many browsers still display them, and last I checked both Firefox and Chrome animate them. You shouldn't use them if you can help it.
Re:Favico.js – Animated favicons by Pxtl on Saturday January 23, 2016 @10:08PM (#10961289)
So does this js work for IE and Safari? If so, we've got a polyfill!
Re:Favico.js – Animated favicons by TazeTSchnitzel on Sunday January 24, 2016 @01:25AM (#10961706)
favicon.ico is a Windows icon, but icons specified in <link rel=icon> don't have to be.
Re:Favico.js – Animated favicons by ch4s3 on Saturday January 23, 2016 @08:21PM (#10961022)
correct
Re:Favico.js – Animated favicons by TimMeade on Saturday January 23, 2016 @07:14PM (#10960795)
Now that just looks useful. I can think of several uses. Thanks
Re:Favico.js – Animated favicons by hhw3h on Saturday January 23, 2016 @10:57PM (#10961399)
When running a cloud based continuous deployment build it would be an awesome way to get an indication that the build successfully deployed or failed.
Re:Favico.js – Animated favicons by sova on Sunday January 24, 2016 @02:45PM (#10963718)
this is sweet. good werk