by marricks · 4y ago · 0 comments
I’ve had a couple websites I use daily for work just get flashy new interfaces which causes 1/3 to 1/2 second delays in the interface which used to not exist, previously they just had normal page load delays.
For example, SalesForce Lightning, their UI overhaul. Old UI is mainly just flat HTML with some loading on fields. New UI doesn’t have as many page loads it seems but wherever you navigate to takes far longer to load because of api calls or just baaad JS.
Slow for the user, slow for the server. It's almost like the people who push website technology are the same one selling you servers. Hate it and want to go back.
The problem is too much reliances on frameworks and add on libraries.
Developers will import an entire framework that for the benefit of a single feature. It's mind blowing to look at the amount of js includes for seemingly simple sites.
Stackoverflow answers that direct you to import a library or framework should be banned in most cases.
I will often have to scroll past several answers that say to import a library before finding a simple and functional answer that uses only a few lines of code down near the bottom. Which in my eyes is the real answer. I often wonder if there's a behind the scenes effort on SO to promote certain includes.
The entire ecosystem of some languages / implementations relies on this far too heavily.
We are seeing some of the consequences other than just bloated systems from this style of coding with malicious node packages.
Vanilla CSS is the other end of the spectrum, but the problem is there is apparently nothing between hand-crafted CSS and a full front-end framework. People, like me, who are not good at design will choose the convenience of the latter over going through the tedium of the former, even if we don't really want to.
Maybe they are, but that bloat is just some static files that are sent to the user as far as the web server is concerned. They should have no practical impact on the battery life of the server.
There are JS sites that render on the server as well, but that's not the bloat you mean.
Sure, most clients may already be adequately provisioned, but only because so many websites with bloated Javascript have forced their hand...
...and if those static files make 100 API calls as soon as they land?
Of course it's hard to debate whether JS, Java or PHP is most inefficient in that regard.
Was here on HN several times, sadly still the case.
Keeping the Web simple keeps it awesome. "
Websites have become significantly more complex in the last two decades.
Reloading the page is like 20MB as well. Great when you’re tethered to your phone.
CSS animations too , especially the ones that use infinite.
Without context, this statement is misleading at best and downright false at worst. You’re right that splitting up a single request into multiple would incur a small performance penalty, but you also generally gain other advantages like more localized caching and the ability to conditionally skip requests. In the long run, those advantages may actually make your app significantly more efficient. But without discussing details like this, it’s pointless to make wild assumptions about performance.
Infinite scrolling could be annoying with animations though, I grant you that.