News for hackers. Stuff that matters.
Re:How to Favicon in 2021: Six files that fit most needs by donatj on Thursday December 24, 2020 @04:06AM (#25526080)
> an SVG file can contain multiple images for different sizes by the use of media queries

They can also contain JavaScript and you can use that to vary by GET parameters. A trick we use quite heavily.

Re:How to Favicon in 2021: Six files that fit most needs by chrismorgan on Thursday December 24, 2020 @06:55AM (#25526763)
Eh, not really. If you load the SVG directly (open a .svg file, or write inline SVG in your HTML), then yes, you can run JavaScript, but when it’s loaded as an image (<img src=example.svg>, or <link rel=icon href=example.svg>), JavaScript will not be executed.