Closed tokumago closed 3 years ago
After testing, these are the results I came up with:
With the entire bootstrap.bundle.min.js file:
Initial Chunk Files | Names | Size |
---|---|---|
vendor.js | vendor | 2.81 MB |
main.js | main | 563.86 kB |
styles.css | styles | 236.27 kB |
polyfills.js | polyfills | 137.13 kB |
scripts.js | scripts | 76.94 kB |
runtime.js | runtime | 6.83 kB |
Initial Total | 3.81 MB |
Only with essential bootstrap js.map files:
Initial Chunk Files | Names | Size |
---|---|---|
vendor.js | vendor | 2.81 MB |
main.js | main | 563.86 kB |
styles.css | styles | 236.27 kB |
scripts.js | scripts | 196.34 kB |
polyfills.js | polyfills | 137.13 kB |
runtime.js | runtime | 6.83 kB |
Initial Total | 3.92 MB |
The amount of files we need from boostrap JS rounds 80% of the total of files. And apparently it occupies less space as a minified bundle, rather than less minified individual files.
tbh. It's counterproductive
Get only bootstrap essential libraries