JavaScript Jabber cover image

JSJ 455: Introducing and Understanding Svelte and Sapper with Mark Volkmann

JavaScript Jabber

00:00

How to Reduce the DOM in a Sfelt Application?

React doesn't re render the entire virtual dome as if you were building your entire u i from scratch. Swelt is smart enough to just know what actually needs to be re rendered and just render that directly. So it's not the case that when any piece of state in a component changes, that it re renders all of the dom for that component. It's re rendering only the parts of the dom that have changed. The issue here is that sfelt bundles are really small when you have a small application. But as a number of components in a sfelt ap grows, the difference between its bundle size and the bundle size of an equivalent react application gets closer and closer.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app