3 ms·
One thing that doesn't help jquery's case is that it and its plugin ecosystem isn't modular, making it impossible to trim the code size below the minified size
by dangerbird2 6y ago
One thing that doesn't help jquery's case is that it and its plugin ecosystem isn't modular, making it impossible to trim the code size below the minified size via dead code elimination or even es6 partial imports. It would be nice to see more fluent DOM apis like jquery, but having 1st class support for es6 modules so you can import only the functionality you need in your final bundle
- brylie 6y agoZeptoJS has a modular build tool, allowing you to select only the desired modules https://zeptojs.com/ https://zeptojs.com/
- arp242 6y agoSo does jQuery by the way; you can use some flags to grunt to enable/disable parts you don't want. The README has some docs on this.
- brylie 6y agoCash supports partial builds: https://github.com/fabiospampinato/cash/blob/master/docs/partial_builds.md https://github.com/fabiospampinato/cash/blob/master/docs/par...