Not because of JS in any case. JS is the whipping boy of desktop performance because its ascendance happened at the same time as what you say: interfaces that update on the fly and need data from the net to do anything at all.
So now download times get blamed on JS and Electron by the haters. Ah, well.