16 ms·
Honestly I used to be on the strict noscript JavaScript hate train. But if your site works fast. Loads fast. With _a little_ JS that actually improves the func
by pushupentry1219 2y ago
Honestly I used to be on the strict noscript JavaScript hate train.
But if your site works fast. Loads fast. With _a little_ JS that actually improves the functionality+usability in? I think that's completely fine. Minimal JS for the win.
- OtomotO 2y agoAbsolutely. I want the basic functionality to work without JS. But we have a working application and users are not hating it and used to it. We rely on modals heavily. And for that I added (custom) JS. It's way simpler than alternatives and some things we do are not even possible without JS/WASM (via JS apis to manipulate the DOM) today. I am pragmatic. But as you mentioned it, personally I also use NoScript a lot and if a site refuses to load without JS it's a hard sell to me if I don't know it already.
- starspangled 2y agoWhat do you use that good javascipt for? And what is the excessive stuff that causes slowness and bloat? I'm not a web programmer, just curious.
- graemep 2y agoTwo examples that come up a lot for me: 1. filtering a drop down list by typing rather than scrolling through lots of options to pick one 2. Rearranging items with drag and drop The excessive stuff is requiring a whole lot of scripts and resources to load before you display a simple page of information.
- _heimdall 2y agoMy rule of thumb is to render HTML where the state actually lives. In a huge majority of cases I come across that is on the server. Some things really are client-side only though, think temporary state responding to user interactions. Either way I also try really hard to make sure the UI is at least functional without JS. There are times that isn't possible, but those are pretty rare in my experience.
- avidphantasm 2y agoBuilding a new app at work using Web Components and WebSockets for dynamism. I’m using Bulma for CSS, which is still about 300KiB. However, the site loads instantly. I’m not using a Javascript framework or bundler or any of that (not even npm!), just vanilla Javascript. It’s a dream to program and I love not having the complexity of a framework taking up space in my brain.