3 ms·
I didn't check the source, but rendering the <canvas> to a data URL, and using something like this [0] would work. [0]: http://stackoverflow.com/questions/5199
by jnpatel 10y ago
I didn't check the source, but rendering the <canvas> to a data URL, and using something like this [0] would work.
[0]: http://stackoverflow.com/questions/5199902/isnt-it-silly-that-a-tiny-favicon-requires-yet-another-http-request-how-to-mak http://stackoverflow.com/questions/5199902/isnt-it-silly-tha...
- 0x1d 10y agoYep, this is the strategy that I'm using. I export the canvas to data URL and place the data URL in the href attribute of the favicon <link>. I'm not sure if this works in every browser though.