DEV Community

Dariusz Więckiewicz
Dariusz Więckiewicz

Posted on

Unicode Emoji or SVG?

Recently implemented dark/light theme button to my website that uses by a default Emoji icon

darkModeToggleBtn.innerHTML = '🌒';
Enter fullscreen mode Exit fullscreen mode

I read a bit about standardized emojis in Unicode like here and wonder, in web development whats better practice, Emoji or SVG?

Not really asking about the fact that in the different operating systems it will display slightly different emoji, but more rather from Web Performance and DOM (especially DOM that can grown with SVG elements).

Discussion (0)