3 ms·
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 does
by hatch_q 4y 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)
- swyx 4y agoi dont understand, you’d have to do the same in react? 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
- Existenceblinks 4y agoIt's 136.4kB minified (react+react-dom), for a zero app is crazy. The app size that will justify 136.4kB is probably 700kB which is 836.3kB total, is also crazy. So no hello world argument because it sucks (in engineering metrics) at all range of apps. According to https://web.dev/optimizing-content-efficiency-javascript-startup-optimization/ https://web.dev/optimizing-content-efficiency-javascript-sta... the js size budget is about 800kB minified (1s to parse/compile). So if an app max out the budget, the framework part is considerably 17.05%. Not bad, but if the median of react app is around 300kB which means the framework part is 45.4%. This is bad!