4 ms·
Re: JavaScript and networking: My random observation tells that sadly most "modern" highly complex websites do it wrong and it can hardly be any worse (this ap
by jakub_g 7y ago
Re: JavaScript and networking:
My random observation tells that sadly most "modern" highly complex websites do it wrong and it can hardly be any worse (this applies to all web products I've been working on for last several years):
1) analytics beacons fired every N seconds (which means the network stack on mobile never goes to idle mode)
2) JS frameworks doing event delegation that capture mousemove events and various other stuff like that + various setTimeout/setInterval (perhaps from third-party code).
If you want a sample of 2) just open devtools > debugger on any page and click "pause". You will immediately hit a debugger in some just-now executing JS callback even if you do nothing at all on the page.
- forgotmypw 7y agoThis is why I browse no-JS, except for a few select sites.
- RussianCow 7y agoI tried this for a bit on mobile, but unfortunately it just breaks too much of the internet to be feasible. YMMV, and to each their own, but I'm not willing to sacrifice that much usability when an adblocker covers most use cases.
- snek 7y agoI wonder how much energy would be saved if people stopped using recaptcha v3, which is basically a perfect storm of event handlers and network usage.
- szatkus 7y agoFunnily when I tried this on HN the debugger stopped at React Developer Tools. I disabled the extension, I don't even use it anymore.