4 ms·
Four issues: 1) JavaScript has to be sent over the wire, so it should be minified. 2) Caching is easier if you hash your assets, ie put the MD5 into the URL s
by earthboundkid 7y ago
Four issues:
1) JavaScript has to be sent over the wire, so it should be minified.
2) Caching is easier if you hash your assets, ie put the MD5 into the URL so browsers know if they’ve downloaded it before or not.
3) Old browsers don’t support modern JS syntax but it can pretty much all be backported by eg turning () => {} into function() {} etc.
4) It’s convenient to use other people’s code by importing it from open source libraries with NPM.
Small issues individually but they add up to meaning any non-hobbyist project ends up needing a bundler.