3 ms·
There's a huge gap between some JS and Spas though. The question for me is always where data is rendered to markup, not whether it uses JS in the browser at all
by flagrant_taco 3y ago
There's a huge gap between some JS and Spas though. The question for me is always where data is rendered to markup, not whether it uses JS in the browser at all.
- pier25 3y ago> There's a huge gap between some JS and Spas though I tend to agree but it depends. I made a small SPA a coupe of years ago with Mithril and the whole thing is like 40kB gzipped (JS and CSS).
- flagrant_taco 3y agoFor me the difference isn't the amount of JS, it's what the JS is doing. A page that requests JSON and renders it to HTML in the frontend is fundamentally different from one that uses JS for basic interactivity. Both uses absolutely have their place and there are products that would be noticeably worse for the end user if all HTML was rendered on the server. I've just learned to have a high bar there, the complexity grows quickly making bugs more likely and debugging more difficult.