Comment

Comment by tobyhinloopen

That SVG does have to be inline though, which drastically increases your HTML page’s size. You cannot style an SVG loaded in an IMG element.

Imagine rendering 50 rows with each 6 icons, 1kb each. There are 6 unique icons, so it’s only 6kb each loading them from the server, but inline you’ll have 300kb of SVG icons

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton