I want to go even further and say that webdevs should never have access to system sockets, ever. It's bad enough with the odd, though mostly harmless 127.0.0.1 access attempts.
Similarly, there are many devs that shouldn't be let near HTML/CSS or JS. I had to clean up their monstrosities afterwards.
There are plenty of retard software engineers that work in every field.
Surely there's a middle ground. For example, every time I update apps on my phone and see 300+ MB package sizes, shit being laggy or just another pretend app that's actually a browser wrapper, I start thinking of murder. Does that mean I shouldn't? Well, silly me, that developer just values his time and defecated some Javascript on my Android device to get Real Work done. Stiff upper lip and keep scrolling.
It isn't "the developer values his time" it is "their employer doesn't want to employ an iOS, Android and a Web dev".
There is no toolkit that works with iOS, Android and Web other than Electron and other similar projects e.g. Titanium.
Compound that with many users don't actually understand what a web browser is, and they've been conditioned to install an app for everything, means that the only viable option unless you want to employ three times as many engineers is wrapping a web app.
Most modern jank btw isn't because of JavaScript itself. One of the biggest offenders it is often poor DOM manipulation and/or selection, often which cause large page redraws, the second being fancy CSS effects. All of this is easy to identify and optimise, the issue that nobody will pay for it. Features are always prioritised over everything else.
e.g. One of the reasons YouTube is so slow on many older devices is because of "ambient mode", older iGPUs cannot handle playing a video with a layer that has alpha transparency behind it. My old Dell 6410 with some shit-tier intel iGPU can manage like 10FPS@720p on YouTube with ambient mode
on, if I turn it
off I get a normal viewing frame rate.