Re:SVG Triangle of Compromise
by panstromek on Monday July 29, 2024 @10:28AM
(#41100747)
cool, that one is about doing that inside html, but I usually do it in external SVG files.
[ Parent
| on HN ]
That makes a lot of sense. If you use some client-side routing (e.g. Next.js), you might be fine, because the page does not reload during navigation. But if you don't, every HTML page will contain all the SVGs increasing the HTML size unnecessarily.
P.S. I actually went ahead and changed the implementation to a separate file on my website after I saw your comment :D