The Cost of JavaScript in 2018
medium.com
medium.com
People poke fun at StackOverflow over everyone answering every JavaScript question with "Use jQuery/React/$FRAMEWORK_OF_THE_WEEK", but its a real problem.
I have a browser game I've been writing, and I've just been using pure JavaScript with no frameworks. It's currently sitting at 28K for the JS+HTML+CSS, and that's without minification. Even when it's done, it'll be under 100K.
If I were to listen to anyone's suggestions for using a framework, I'd already be at 84K from jQuery alone.
"Oh, you want to do X? Well, that normally takes 4 lines of JavaScript code, but you can include this framework that turns it into a single function call!"
Meanwhile I can’t even get consistent event firing order between IE, Edge, and Chrome for key and mouse events on inputs.
Almost a meg of code is a target to "aim" for? Please burn the DOM to the ground now, thank you.
If you don't understand how v8 works, don't use js.