Preparing to launch a static Gridsome website, the entire site currently weighs in at 518KB (including self-hosted, heavily subsetted fonts, and minified inline SVGs) before gzipping. While not excessive in size, there's still room for improvement.
After analyzing Chrome's code coverage tools, it was discovered that 88561 bytes of app.js (totaling 181166 bytes) are not being utilized - accounting for nearly half of the file. This raises concerns given the minimal dependencies on Gridsome and lightweight JavaScript code used. The culprit may be attributed to Vue.js or Gridsome itself, which runs on Webpack 4 and is capable of optimization, yet questions remain.
Is there a solution to reduce this unnecessary weight, or is it simply unavoidable? Should I consider building the website from scratch using vanilla JS to avoid such bloating?
Any advice would be greatly appreciated :)