DEV Community

Discussion on: In defense of the modern web

Collapse
 
jon49 profile image
Jon Nyman

I think it is more use the right tool for the job. Some websites you can get away with mostly static with just a little bit of JS. Let's say you have a blog. Just some statically rendered HTML pages should be fine with some JS for the dynamic parts and then add in some instant.page functionality to preload a page. Maybe you could even add some transitions if it is preloaded, I have no idea.

Then for a business site maybe something like intercoolerjs could work.

Then when you want something that is fairly static but has some dynamic parts then you could use something like Svelte or some other lightweight framework.

I'm more of a back end dev. But I like to follow the front end world and experiment on the side. I'm building an offline first web site and using Stage0 for the more dynamic side of things. I'm using mostly vanilla js and small libs for everything else and it really hasn't been that bad of an experience.

The one thing that has been annoying with the way I'm architecting my site is that my templates are separate from my data. One of my goals was to keep the build steps minimal which has led me this way. But with something like Sinuousjs/Svelte/Sapper I could keep a small run time and get a better developer experience. So, for something that was more oriented for a team development environment I would probably lean towards those. But for my personal project it is fun learning all the native APIs and learning how to keep things lean on my own.

Collapse
 
jon49 profile image
Jon Nyman

And with the ability to use sidecar proxy (service workers) on the front end it makes writing a custom router really simple.