>For context, I consider 1 MB of Javascript to be on the heavy side for a web page/app.
I feel like > 2kb of Javascript is heavy. Literally not needed.
I feel like > 2kb of Javascript is heavy. Literally not needed.
IMO, the worst offenders are when you bring in charting/graphing libraries into things when either you don't really need them, or otherwise not lazy loading where/when needed. If you're using something like React, then a little reading on SVG can do wonders without bloating an application. I've ripped multi-mb graphing libraries out to replace them with a couple components dynamically generating SVG for simple charting or overlays.