3 ms·
I'm inspired to slim down my own app. Any good tools or techniques out there to identify what's causing bloat?
by vendiddy 3y ago
I'm inspired to slim down my own app. Any good tools or techniques out there to identify what's causing bloat?
- lifthrasiir 3y agoIn general, look for dependencies. Any popular enough bundlers should have a feature or plugin to show the bundle statistics (e.g. webpack-bundle-analyzer or rollup-plugin-analyzer). Audit your dependency to see if that's not requested nor needed, and try to remove them with a finer-grained dependency or leaner library or rewriting, in the order of preference. That alone is enough for usual JS apps, because not much people do so...
- npteljes 3y agoTurning on any kind of performance monitoring can help. They usually have ones for every platform. For the web, for example, I used YSlow in the past, but there are several alternatives: https://alternativeto.net/software/yahoo-yslow/ https://alternativeto.net/software/yahoo-yslow/