Back to writing

The case for building with vanilla web

Discover why modern browsers make HTML, CSS, and JavaScript powerful enough to build fast, reliable sites without heavy frameworks.

5 min read · Aug 25, 2025
Photo by Pramod Tiwari

In today's web development world, it feels like every project starts with a framework. React, Vue, Angular, Svelte — each promises speed, productivity, and structure. But underneath these layers, the web itself has matured far beyond what most developers give it credit for.

The so-called "vanilla web" — HTML, CSS, and JavaScript without a framework — has become surprisingly capable. This approach is not just for small projects or hobbyists. It's a serious contender for real-world applications.

Why developers reach for frameworks

Frameworks didn't rise to dominance by accident. They solve real problems:

But every convenience comes with cost. Dependency chains grow, build times increase, and teams become locked into framework-specific ways of thinking. The browser has to load far more than just your application logic — it's loading the framework too.

The modern browser is not what it used to be

Frameworks originally filled gaps in the web platform. Ten years ago, developers couldn't rely on features we now take for granted:

Today, browsers ship with robust APIs and native features. Modern JavaScript supports classes, modules, template literals, and async functions. CSS can now handle layouts and theming without hacks. The foundation is solid.

What vanilla development really means

Going "vanilla" does not mean refusing all tools. It means relying on native web standards as much as possible before adding extra layers. This approach usually involves:

With the right mindset, you can create clean, maintainable projects with no runtime framework at all.

Performance benefits of vanilla web

When you strip away a framework, you immediately reduce bundle size. The browser no longer needs to download and parse a JavaScript library just to render your first page. This means:

In some cases, going framework-free cuts hundreds of kilobytes off a project. That's the difference between instant loading and visible lag on low-end devices.

When a framework becomes unnecessary

Not every project needs component hierarchies, global state management, and virtual DOM diffing. Consider whether your project actually benefits from a framework if it's:

Even some production applications with modest interactivity can be built in pure JavaScript modules without any noticeable productivity loss.

Modern tools that help without taking over

Choosing vanilla web does not mean abandoning productivity. Several tools exist that complement standards without imposing heavy runtime costs:

These tools allow you to stay close to the platform while still working efficiently.

Learning curve advantages of vanilla web

Developers who start with frameworks often skip learning how the browser actually works. They get comfortable with framework-specific conventions, then struggle when debugging raw DOM issues. Building vanilla applications teaches:

This foundation pays off even if you later adopt a framework — because you'll understand its internals better.

Downsides of avoiding frameworks

Vanilla development is not perfect. Larger projects can become difficult to organize without conventions. You may need to:

These are real trade-offs. Frameworks exist for a reason. But by starting vanilla and only adding tools when necessary, you stay in control.

A balanced way to choose your approach

The question is not "framework or no framework." It's "how much framework do I need?" A practical way to decide:

This approach produces leaner projects and developers who truly understand their tools.

The future of the vanilla web

Web standards continue to evolve. Features like native lazy loading, CSS container queries, and better developer tooling make it even easier to skip frameworks entirely. As the web platform gets stronger, the gap between "vanilla" and "framework-driven" development shrinks.

Companies are already noticing. Some are migrating marketing pages or simple apps away from heavy frameworks to improve performance and maintainability. This trend is likely to grow as browsers add more built-in capabilities.

Final thoughts

The vanilla web is no longer a primitive fallback. It's a fully modern approach to building fast, reliable, and maintainable websites. Frameworks are powerful, but they should be chosen deliberately, not out of habit.

If you learn to build with raw HTML, CSS, and JavaScript, you gain control over your projects and understand the web at its core. And when you do decide to use a framework, you'll know exactly why — not just because everyone else does.