|
|
|
|
|
by hatch_q
1297 days ago
|
|
I'm missing the raw numbers. Increased performance? Faster code execution? By how much?
I'm sure Svelte is faster, but if we're talking 10% improvement it doesn't really matter. Additionally... {@html
Prism.highlight(code, Prism.languages[lang], lang)
}
looks very unsafe to me. (Vue example has the exact same problem) |
|
mostly this code injection comes from trusted sources like your CMS. if you’re displaying arbitrary user input then yeah better sanitize it but thats a problem common to all frameworks react included
as for perf i mean the main thing is “are you downloading 100kb just for the framework” whereas many svelte apps come in under 10kb. beyond that agree it doesnt really matter