We reduced our vendor.js from 210kb to 16kb in about five minutes of work and ten lines of code

added by JavaScript Kicks
12/21/2018 9:04:14 AM


Even though we strive for a minimal JavaScript load on dev.to, we had gotten lazy with our optimization. Our vendor.js file, which includes all the code from our external libraries, had ballooned to 210kb. The total size of the JavaScript we deliver had gotten up to about 250-300kb depending on context.