Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kccqzy
· 9mo ago · 0 comments
If you just serve SVGs through <img> tag it’ll be much safer. I never understood the appeal of inline <svg> anyways.
Comments
[–]
lenkite
9mo ago
Inline SVG is stylable with CSS styles in the same HTML page.
[–]
runarberg
9mo ago
Also animatible with the same context (Animation API, etc.) as the parent page, so different SVGs can influence each other’s animations.
[–]
rwj
9mo ago
Inline reduces round trips.
[–]
toast0
9mo ago
You can use img with a data url?