DEV Community

Discussion on: Svelte. What is your opinion about the lightweight JS framework?

Collapse
 
matiaslopezd profile image
Matías López Díaz

We're starting to use Svelte in pieces of our products on the basis of performance, bundle size, and easy implementation. An example is we created in 48 hours a complete piece of or product with Svelte at the same time we learned it. Meanwhile, with Vue, we take 1 week. We don't use React because is complex and slow.

So, I believe that Svelte is a perfect framework to do things that need to be fast, lighter, and not too complex.

When I talk about fast is related to a project where update DOM will be critical and can take a lot of CPU to process, and/or you need a small bundle to not waste too much bandwidth with third-party libraries like Vue, React, etc.

The other thing that is awesome is that you can copy the single dist file and paste it in the dev tools console and works, simple.

We still using Vue to develop dashboards, for example.

Collapse
 
dennisfrijlink profile image
Dennis Frijlink

Thanks for your reply! I love Svelte for its simplicity. So you're using svelte for your "basic" applications and vue for the more complex ones?

Collapse
 
matiaslopezd profile image
Matías López Díaz

Mmmh I don't if I can call it complex or simple, because, for example, we need lightweight pieces on our platform like WebRTC, which in itself is too complex and consume a lot of CPU, but it's not an app with a lot of pages, components, and reactivity. In that context we use Vue, but recently with Svelte, we saw that the performance was improved 10x or 20x and CPU consumption was 20x lower (DOM update).

Also, our widget is integrated on our customer's websites and the bandwidth consumption was reduced 15x lower than with Vue. (bundle size)

So, for us, Svelte is truly awesome for that type of uses cases.

Thread Thread
 
dennisfrijlink profile image
Dennis Frijlink

Nice to know! Thanks for your reply