cash.min.js is 7.8kb once downloaded, for anyone coming to this thread after me.
Nice work all around, is this comparable with Zepto? What features are missing from Cash that you guys hope to add?
cash.min.js is 7.8kb once downloaded, for anyone coming to this thread after me.
Nice work all around, is this comparable with Zepto? What features are missing from Cash that you guys hope to add?
https://github.com/kenwheeler/cash/blob/3cb498ca7c5776b8cadc...
curl https://rawgit.com/kenwheeler/cash/3cb498ca7c5776b8cadcce588... | wc -c # 9282
curl https://rawgit.com/kenwheeler/cash/3cb498ca7c5776b8cadcce588... | gzip | wc -c # 3225
curl https://cdn.jsdelivr.net/cash/1.0.0/cash.min.js | gzip | wc -c # 2636
https://github.com/finom/balalaika/
If that's too much, there's an even more extreme version (379 chars):
> document.querySelectorAll('.my-selector')
Jquery functions Zepto has that Cash does not: ajax, contents, hide/show, map, offset, offsetParent, replaceWith, scrollLeft, scrollTop, size, slice, submit, toggle, unwrap, wrap, wrapAll, wrapInner
Zepto also has some optional plugins that aren't in the default build.