A JavaScript-Free Front End
11–20 of 215 posts
Re: A JavaScript-Free Front End
#12Re: A JavaScript-Free Front End
#13"I did actually use some JavaScript on the new Slimvoice, but only when an interaction could not be replicated in any other way."
Overall, the article does point in a good direction.
Re: A JavaScript-Free Front End
#14That's ace. But my internet connection has a 2 second latency so I still have to wait an annoyingly long time every time I interact with your app. My connection is terrible too, so it drops every 10th request, and now I'm seeing a lot of broken pages. If only you'd written an offline-first PWA and used background-loading and prefetching with some intelligence to retry failed requests in order to deliver content before I actually need it this would have worked so much better.
But hey, the app is perfect for you on your robust wifi, so it must work out there in the real world, right?
Snark aside, there's a good reason to build web software in a variety of different ways. Pick the one that suits your users. Don't assume everything works perfectly and every internet connection is strong, fast wifi. That just means a lot of users (especially poorer ones in rural communities) are going to struggle with what you're selling.
Re: A JavaScript-Free Front End
#15100 percent agree. Use as little JS as possible on front end. And then definitely use zero JS on backend.
Re: A JavaScript-Free Front End
#16Most of this stuff isn't new, it's about a decade+ old at this point. Backend developers often tend to turn up their noses on web front ends, so they don't bother to actually learn anything meaningful, and just sit complaining constantly.
Re: A JavaScript-Free Front End
#17Since I'm caching and gzipping everything, each subsequent pageview is around 6 KB; far smaller than the SPAs I've seen with equivalent functionality. That's ace. But my internet connection has a 2 second latency so I still have to wait an annoyingly long time every time I interact with your app. My connection is terrible too, so it drops every 10th request, and now I'm seeing a lot of broken pages. If only you'd wri…
Re: A JavaScript-Free Front End
#18Since I'm caching and gzipping everything, each subsequent pageview is around 6 KB; far smaller than the SPAs I've seen with equivalent functionality. That's ace. But my internet connection has a 2 second latency so I still have to wait an annoyingly long time every time I interact with your app. My connection is terrible too, so it drops every 10th request, and now I'm seeing a lot of broken pages. If only you'd wri…
Everything is a tradeoff.
Re: A JavaScript-Free Front End
#19wow this is excellent, / are good tricks
https://caniuse.com/#feat=details
And here I thought Edge was a modern browser.
Re: A JavaScript-Free Front End
#20I gotta get better at CSS, I'm somewhat horrified by what I've done in JavaScript that it turns out I didn't need. Does anyone know of a good book on intermediate/advanced CSS to help avoid excess JS usage/complexity?