Re:Websites have evolved back to static HTML/CSS/JS files
by cjbassi on Sunday March 08, 2020 @08:18PM
(#22521734)
And without a virtual dom and all of its overhead.
[ Parent
| on HN ]
Re:Websites have evolved back to static HTML/CSS/JS files
by nojvek on Monday March 09, 2020 @10:49AM
(#22525799)
Virtual dom isn’t that expensive compared to modifying dom. Svelte isn’t magical, it’s still diffing objects to figure out whether to change some dom element’s attributes
With react memoization and pure components, you get very similar benefits.
Sure svelte goes the extra step and removes unnecessary diffing of constant attributes that will never change and other opts. However there are tradeoffs