3 ms·
JavaScript is like the worst alternative to HTML and CSS when it comes to performance, dependencies and accessibility.
by techntoke 7y ago
JavaScript is like the worst alternative to HTML and CSS when it comes to performance, dependencies and accessibility.
- maxharris 7y agoWhy do you believe that is the case? And what can be done to change that situation for the better? Finally, why is JavaScript so popular? Why is driving the fact that more and more of the web getting rebuilt in JavaScript?
- techntoke 7y agoPrimarily because JavaScript was the only language provided via browsers for dynamic scripting, so they didn't have to compete or care that much about performance optimizations. Also, browsers have become bloated virtual machines that try to cater to companies that want to track things like mouse and keyboard activity, rather than user privacy and consistency for uniform experiences. JavaScript is so popular because a majority of developers started with with web development, and a majority of the money flowing into development was/has been focused on gathering user information and pushing ads for additional revenue, not delivering quality content using a consistent interface.
- dwild 7y ago> Why do you believe that is the case? And what can be done to change that situation for the better? The current HTML/CSS rendering is currently done by the browser. That part is native which means it can benefit heavily by the resources available that way (usage of the CPU/GPU, direct access to memory, etc...). It's also made by a bunch of people, with years of experience in the domain, they can make all this Your solution would put this all on the Javascript side, which is already often put to its limits with our current usage. React seems like a better solution. It render directly to HTML/CSS, so it profit from the browser performance to render it, but you can replace the rendering with something else (like React Native).