Favicons the Right Way

  Рет қаралды 12,526

Colby Fayock

Colby Fayock

Күн бұрын

Пікірлер: 59
@colbyfayock
@colbyfayock 5 ай бұрын
Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course
@justingolden87
@justingolden87 5 ай бұрын
I knew you could use svg favicons (with so-so support) and I knew you could add style tags inside SVG and use currentColor, and I knew about prefers media, but I *didn't* know you could use prefers media INSIDE the SVG! That's so cool.
@colbyfayock
@colbyfayock 5 ай бұрын
yess!!! such an awesome trick
@guillermo.avalos
@guillermo.avalos 5 ай бұрын
I always pronounced it favicon, not favicon.
@colbyfayock
@colbyfayock 5 ай бұрын
oh i thought it was favicon
@hosea_br
@hosea_br 5 ай бұрын
Yeah, I'm pretty sure it is favicon.
@iambasantarai
@iambasantarai 5 ай бұрын
I can read this.
@eshwargetenv1
@eshwargetenv1 5 ай бұрын
yes, thats favicon for sure.
@FranciscoMarcosMilhomemAbreu
@FranciscoMarcosMilhomemAbreu 5 ай бұрын
Me too.
@tienvohoang5359
@tienvohoang5359 4 ай бұрын
I didn't know that we can mutate the meta tag like favicon. Thanks a lot for the tutorial. I'm really looking forward for your upcoming Next.js course.
@colbyfayock
@colbyfayock 4 ай бұрын
yeah its a cool feature! 🙌
@cb73
@cb73 5 ай бұрын
You said “different strokes” and my brain immediately went “whatcha talkin about Willis??”
@colbyfayock
@colbyfayock 5 ай бұрын
lmao been a minute since i heard that
@eip408
@eip408 5 ай бұрын
this small details matter. thanks for the tuts Colby instant sub. I was actually wondering how to do it the right way for a long time now. 🙌
@colbyfayock
@colbyfayock 5 ай бұрын
glad it helped out!
@petecapecod
@petecapecod 2 ай бұрын
Awesome video Colby 🎉🙌🏻 This will be handy to use on my sites.
@colbyfayock
@colbyfayock 2 ай бұрын
thanks! 🙌
@tamaniphiri
@tamaniphiri 5 ай бұрын
Finally, someone to talk about this 💯🔥
@colbyfayock
@colbyfayock 5 ай бұрын
🙌
@jdhillen
@jdhillen 5 ай бұрын
Great tips here! Thanks Colby!
@colbyfayock
@colbyfayock 5 ай бұрын
no problem!
@JakobRossner-qj1wo
@JakobRossner-qj1wo 5 ай бұрын
this video is a banger
@colbyfayock
@colbyfayock 5 ай бұрын
thanks! 🙌
@iPuppyTech
@iPuppyTech 4 ай бұрын
Why not js to watch for theme updates, so we can get a live update on toggling the theme ?
@colbyfayock
@colbyfayock 4 ай бұрын
definitely a valid solution! i find the CSS approach to be a bit simpler particularly around defining the colors via SVG, but no reason you couldn't do it with JS
@GerardoScript
@GerardoScript 3 ай бұрын
amazing content :)
@colbyfayock
@colbyfayock 3 ай бұрын
thank you!
@justingolden87
@justingolden87 5 ай бұрын
Is there any worry if you set sizes to 48x48 and safari uses the ico and chrome uses the svg, but is it possible a browser sees 48x48 like chrome and ignores the ico but also doesn't support svg? In otrher words, if I have both of these, is it possible some browsers still won't display a favicon
@colbyfayock
@colbyfayock 5 ай бұрын
good question! and looks like i forgot to add the link i was talking about to the description: dev.to/masakudamatsu/favicon-nightmare-how-to-maintain-sanity-3al7 from what i'm understanding reading through their post having those 2 options should be safe
@KhairulHidayat
@KhairulHidayat 5 ай бұрын
Can i use .png icon instead of .ico for the backup?
@colbyfayock
@colbyfayock 5 ай бұрын
PNG has pretty broad support: caniuse.com/link-icon-png but at the size it's being shown it wont really make a difference unless you have a good reason to use PNG vs ICO
@aaronkaiser
@aaronkaiser 5 ай бұрын
A better way to clear Safari favicon cache is to turn on developer mode and then empty cache for the site.
@colbyfayock
@colbyfayock 5 ай бұрын
ah interesting, will try that. was trying to search all over and that was the best i could find. thanks for the tip!
@Collect-AI
@Collect-AI 5 ай бұрын
How can we create an animated Favicon?
@colbyfayock
@colbyfayock 5 ай бұрын
The trick would be to use the method I shared in there, by programmatically updating the favicon, but doing so in a way that you're updating it frame by frame, which can be a bit of work depending on the scenario, but could be a great effect depending on the scenario here's an older article that walks through an example: css-tricks.com/the-making-of-an-animated-favicon/ the idea there is the image is programmatically generated, so it's not like you're saving it out frame by frame, but thats certainly an option
@JakobRossner-qj1wo
@JakobRossner-qj1wo 5 ай бұрын
@@colbyfayock Can you use css animations or something like that haha
@colbyfayock
@colbyfayock 5 ай бұрын
@@JakobRossner-qj1wo haha not that im aware of, i wish
@mzafarr
@mzafarr Ай бұрын
pwa tutorial please
@alexlynpi
@alexlynpi 5 ай бұрын
Is your figma the beta?
@colbyfayock
@colbyfayock 5 ай бұрын
that sounds familiar, but not totally sure, version says 124.3.2
@PicSta
@PicSta 5 ай бұрын
A lot of voodoo here...
@colbyfayock
@colbyfayock 5 ай бұрын
👀
@BliitzPint
@BliitzPint 4 ай бұрын
Fave Icon? Are you serious? 😂
@learningwithaaron
@learningwithaaron 5 ай бұрын
Its pronounced fah-vee-con not fay-vigh-con 😕 that bothered me hearing it wrong so many times ngl
@colbyfayock
@colbyfayock 5 ай бұрын
🤷‍♂
@danielzaremba2677
@danielzaremba2677 5 ай бұрын
Mute the video lol. My God …
@user-qp2xq5zz8z
@user-qp2xq5zz8z 4 ай бұрын
I mean he said ping instead of PNG
@colbyfayock
@colbyfayock 4 ай бұрын
@@user-qp2xq5zz8z yeah id say thats more common than any variation of favicon lol
@SO-fb4ef
@SO-fb4ef 2 ай бұрын
but it has to be 16x16 not 1024x1024 dude. Wtf mannnnnnn this doesn't help me at all
@renatofrota
@renatofrota 5 ай бұрын
when web got so complicated? ugh
@colbyfayock
@colbyfayock 5 ай бұрын
definitely some truth to this! and unfortunately the complicated part here is the mixed browser support and quirks to get what we need. this is the type of thing that should certainly be standard across all browsers!
@renatofrota
@renatofrota 5 ай бұрын
​@@colbyfayock that's why I will just add a dark bg to the favicon in PNG format (as your JS one). Easy and simple.
@colbyfayock
@colbyfayock 5 ай бұрын
​@@renatofrota definitely a simpler route, there's something nice imo about the icon without the background when you can
@LukeWatts85
@LukeWatts85 5 ай бұрын
Nice vid...but seriously it's not pronounced fave-icon, it's favicon (like how slav isn't the same as slave)
@colbyfayock
@colbyfayock 5 ай бұрын
that's what Big Favicon wants you to think 🤐
@philipehusani
@philipehusani 5 ай бұрын
WTF is a favicon? I thought it was called a favicon!!!
@colbyfayock
@colbyfayock 5 ай бұрын
no, its favicon!
@stonebubbleprivat
@stonebubbleprivat 5 ай бұрын
So many words and so little substance. This could have been a 5 minute video 😑
MDX in Next.js is Easy Now
24:16
Colby Fayock
Рет қаралды 8 М.
Pagination in React
29:05
Colby Fayock
Рет қаралды 4,9 М.
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
Thinking on ways to solve SVG FAVICON
6:14
Chrome for Developers
Рет қаралды 18 М.
Learn flexbox the easy way
34:04
Kevin Powell
Рет қаралды 740 М.
Lint & Format JavaScript with Biome
23:20
Colby Fayock
Рет қаралды 7 М.
How To Handle Permissions Like A Senior Dev
36:39
Web Dev Simplified
Рет қаралды 364 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 147 М.
Best Way to Add Popup Modals in React
26:19
Colby Fayock
Рет қаралды 12 М.
This Folder Structure Makes Me 100% More Productive
24:36
Web Dev Simplified
Рет қаралды 123 М.
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 2,2 МЛН
How Slow Is JavaScript? | Prime Reacts
15:34
ThePrimeTime
Рет қаралды 187 М.
Generate a PDF in React
23:38
Colby Fayock
Рет қаралды 35 М.
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН