Should bundle.js be minified?
This morning I tried to open dev.sub.gargantext.org
and it was taking so long I thought my connection wasn't working. However, looking at the Network
tab revealed that more than two minutes were spent trying to load the bundle.js
with our PureScript code:
Eventually the issue resolved by itself (probably it was my connection being temporarily slow) but when I looked into the bundle.js
code I could see how it's basically uncompressed and not minified, which make its size bigger than it should be.
Really for production environment I cannot see of any good reason why our javascript libraries / assets shouldn't be minified, to optimise for page loading times.
Apparently spago has a --minify option, so we should try using that?