Some might even say it is better to mostly ship HTML with minimal JS.
ducks
Some might even say it is better to mostly ship HTML with minimal JS.
ducks
It's sad how most websites these days are fully-featured web applications. Take this blog page by Google. A simple web page with some pictures loading over 300kB of Javascript libraries and tooling. And this isn't even an exception. It's sad, really, and a waste of readers' bandwidth.
The problem I find is usually misaligned incentives. When you go to BuzzFeed you just want to read an article, but BuzzFeed wants to track you and sell you ads. It's not in their best interest to keep it simple.
If you're not going to, don't tell me how to work with code I gotta work with.
Can we just agree to let this meme die? React and vue didn't appear because developers wanted bloat.
If you want to reduce bloat, take that to corporate greedy actors stuffing pages with tracking and don't ever touch tools that make my life easier.
Spring, JEE, ASP.NET, Rails, Django,...
Same question. Who's going to write all those 'components' wrapping libraries for each of those when everyone has already moved on to react or vue? Some disgruntled retrograde? Am I supposed to waste time on it so that you can bask in the glory of 'pure html and js'?
In a few years the React/Vue fad will be gone, while HTML/CSS/VanilaJS will still be around.
We are the ones not wasting time learning fad of the day stacks.
Certainly. However, something even better will replace it and you guys will moan about it again. It only hurts yourself if you refuse to learn.
Coffeescript, Dart, AngularJS, Dojo, MooTools, Prototype, Bower,...
So much time I saved keeping focused on SSR frameworks, alongside VanillaJS.
I used to look down on something like Next.js/Nuxt.js [1] for simple (and advanced) websites until I used it and I'm 100% convinced it's the future of web development. Where most of the content is built with components but pre-rendered server-side and the JS loads to 'hydrate' the interface with interactive elements. I've stopped using heavy frameworks like Phoenix as a result and switching to simpler backends APIs written in Rust/Ruby/etc with Vue SRR handling the full frontend.
Combined with treeshaking, chunked JS via webpack (which automatically only renders tiny .js files on-demand based on what components the page/route needs), purgeCSS which removes all unused CSS, PWA/critical inlined CSS tools, and other easy-to-use optimizations you can have a fully feature-rich JS site with SEO-friendly HTML pages and very fast page loads.
We're just seeing the beginning of Vue/React and it's going to improve the web from the ills of the past, not make it worse. Better performance and more importantly high-quality well composed codebases, plus TypeScript which helps JS applications scale in size while keeping them sane.