Webdev never svelte so good
#svelte, #web_development

Webdev never svelte so good

We Do Dev Work
We Do Dev Work
06 Aug 2025 09:23 AM

Why we started using a “niche” frontend language in production.

React rules the web development landscape for almost 10 years. At We Do Dev Work, we’ve done plenty of projects in React as well as NextJS, which added server-side before React did themselves. React is great for single page applications (SPA’s)!


But, the world of web development includes much more than SPA’s.


The importance of server side rendering

The flaws of React were well known in the community. Developers needed some way of building SEO friendly websites that don’t require huge JavaScript overhead.


Vercel stepped in with a solution and NextJS was born. Instead of rendering every element on the client side, NextJS runs some of your JSX code on a server and renders elements there. Combined with some caching, this allows for faster loading times, less resource consumption on the client side and better SEO scores on the web.


What NextJS got wrong

For Vercel however, building a framework isn’t a great business model, it requires a lot of very good software engineers and generally isn’t monetizable because there are so many open source options out there. Vercel isn’t in the business of building frameworks, they are primarily a serverless cloud provider. And that’s where NextJS goes wrong…


Because Vercel wants to sell you their servers and bills you for every request made to those servers, they started recommending questionable practices in their NextJS framework. Everything now has to be done on the server side, according to their official documentation. Server-side operations are abstracted, and default settings generally take up more server resources (think of NextJS Image for example). This makes it incredibly difficult to optimize a NextJS application for cost, and often comes with longer loading times compared to static rendering techniques.


To blatantly tell a short story: NextJS is an enshittified* framework, reopening the market for a true SEO friendly framework.


And that’s where Svelte starts to feel good

Svelte is essentially a framework that compiles an application directly into HTML and JavaScript code. It doesn’t rely on a large library (such as a virtual DOM) that has to be imported in the client application. It also offers server-side rendering, components, folder-structure based routing and other known features from React and NextJS.


The choice to use Svelte depends on the project! The Svelte approach offers a leaner codebase and smaller bundle size, making it perfect for projects that prioritize performance and code maintainability. But for complex business requirements, central state management and diverse third party integrations, React would still be preferred.


In our first project with Svelte, our own website (www.wedodevwork.com), we prioritized performance. We opted for a static site approach using the svelte static adapter that could be deployed very cheaply on a cloud distribution network. We noticed that moving to Svelte was easy because our developers were already familiar with TailwindCSS and Svelte also uses the HTML syntax within the codebase.


What makes Svelte great for SEO is its simplicity of loading data. Loading data happens either on the server, or both the server and client. It is possible to load data on every request (using hooks), but generally it’s done once and the data can be invalidated by either changing a dependency or by an intervention calling the “invalidate” function. You can also stream responses with a promise, allowing you to render content such as loading bars while waiting for the data response.


Our future with Svelte

The Svelte community is relatively small compared to React, resulting in a limited set of third party tools and libraries. And while Svelte is still growing, its small sample size of open-source codebases results in a poor vibe-coding experience. We don’t mind digging through some documentation to fill in the gaps, but it does mean we need to invest more into the learning curve that comes with Svelte adoption. It is also easier to hire new React developers to maintain a large existing codebase.


That’s why we’ll be using caution before moving every project to Svelte. But for performance critical small- to mid-sized projects it’s a great candidate as a frontend framework. If all you have is a hammer, everything looks like a nail. Luckily, we have both Svelte and React in our skillset now, and we know both frameworks’ strengths and weaknesses to make the right decision on which one to use!


If you want to build something with Svelte (or React), let us know. We Do Dev Work can help you build and optimize your web applications.

ความคิดเห็น (0)
Anonymous
Anonymous
ยอดนิยม
Webdev never svelte so good

Webdev never svelte so good

React rules the web development landscape for almost 10 years. At We Do Dev Work, we’ve done plenty of projects in React as well as NextJS, which added server-side before React did themselves. React is great for single page applications (SPA’s)! But, the world of web development includes much more than SPA’s.
We Do Dev Work
We Do Dev Work
06 Aug 2025 09:23 AM
Supabase Launch Week 15: what matters to us

Supabase Launch Week 15: what matters to us

At We Do Dev Work, we often choose Supabase as our backend for custom software projects. From startup MVPs to scalable platforms, it allows us to move fast without cutting corners. That is why we always keep an eye on their launch weeks.
We Do Dev Work
We Do Dev Work
31 Jul 2025 10:19 AM
The foundations of AI: What every product leader should know

The foundations of AI: What every product leader should know

At We Do Dev Work, we're not just using AI (to write blog posts), we're building with it every day. But in a world increasingly flooded with buzzwords, it can be difficult to cut through the hype. This guide is for founders, product managers, developers and curious minds who want to understand the real building blocks of modern AI systems.
We Do Dev Work
We Do Dev Work
25 Jun 2025 05:02 AM
What is AI development?

What is AI development?

AI technology has advanced rapidly in recent years, yet it isn’t really “new”. Deep neural networks have been researched since the 1950s. And in 1985, the AI research market was already worth over 1 billion US dollars.
We Do Dev Work
We Do Dev Work
01 Jun 2025 04:25 AM
Case study: Nexivo, a smart event companion app for Connect-IT25

Case study: Nexivo, a smart event companion app for Connect-IT25

Nexivo, an intuitive event companion app designed to help visitors navigate the venue, create their own schedules and connect with other attendees in real-time.
We Do Dev Work
We Do Dev Work
20 May 2025 04:44 AM
Just don't write bugs, bro

Just don't write bugs, bro

Every Software Engineer, Project Manager and QA has been there: a tight deadline is coming up and there are still issues with the software.
We Do Dev Work
We Do Dev Work
28 Apr 2025 06:49 AM
Avoiding common pitfalls in software development

Avoiding common pitfalls in software development

Software development is an exciting but complex process. It’s not a small investment for a business, involving many different people, each performing their own role to deliver a successful project. Even the most experienced teams can fall into traps that lead to delays, or even project failure in the worst cases.
We Do Dev Work
We Do Dev Work
26 Feb 2025 07:08 AM
What is a software agency (and why should you work with one)?

What is a software agency (and why should you work with one)?

Technology advances rapidly, and it’s hard to keep up. Having a great idea is not enough for a business to succeed. You need the right digital tools to bring your ideas to life and compete in the digital world. That’s what a software agency can help you with, they specialize in the design and development of software solutions. We’ll answer some of the most asked questions about software agencies.
We Do Tech Talk
We Do Tech Talk
11 Feb 2025 06:45 AM