5 ms·
Hey guys, if the selling point of this framework is the size, I would suggest adding the library size to the readme, preferably in the first paragraph or so. Th
by random_rr 11y ago
Hey guys, if the selling point of this framework is the size, I would suggest adding the library size to the readme, preferably in the first paragraph or so. That's what I looked for when I loaded the page, and I didn't see it.
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?
- twolfson 11y agoStrange my numbers vary from yours. In their latest commit the minified content in their dist is 9.3kb as is and 3.2kb after gzip https://github.com/kenwheeler/cash/blob/3cb498ca7c5776b8cadcce5884f18e93a61931a9/dist/cash.min.js https://github.com/kenwheeler/cash/blob/3cb498ca7c5776b8cadc... curl https://rawgit.com/kenwheeler/cash/3cb498ca7c5776b8cadcce5884f18e93a61931a9/dist/cash.min.js https://rawgit.com/kenwheeler/cash/3cb498ca7c5776b8cadcce588... | wc -c # 9282 curl https://rawgit.com/kenwheeler/cash/3cb498ca7c5776b8cadcce5884f18e93a61931a9/dist/cash.min.js https://rawgit.com/kenwheeler/cash/3cb498ca7c5776b8cadcce588... | gzip | wc -c # 3225
- random_rr 11y agoI downloaded their cdn version: https://cdn.jsdelivr.net/cash/1.0.0/cash.min.js https://cdn.jsdelivr.net/cash/1.0.0/cash.min.js
- ryptophan 11y agocurl https://cdn.jsdelivr.net/cash/1.0.0/cash.min.js https://cdn.jsdelivr.net/cash/1.0.0/cash.min.js | wc -c # 7769 curl https://cdn.jsdelivr.net/cash/1.0.0/cash.min.js https://cdn.jsdelivr.net/cash/1.0.0/cash.min.js | gzip | wc -c # 2636
- tekromancr 11y agoI did not know you could pipe to gzip... That's awesome!
- trollingineeer 11y agoIt's a nice library, but thanks for being a NEGATIVE NANCY from the get-go.
- nathancahill 11y agoIndeed. I've been very happy with this badge service: https://github.com/ngryman/badge-size https://github.com/ngryman/badge-size
- tyingq 11y ago>> is this comparable with Zepto? 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.
- haywirez 11y agoYesterday I found a good, extremely lightweight (986 bytes uncompressed) alternative, extends Array.prototype: https://github.com/finom/balalaika/ https://github.com/finom/balalaika/ If that's too much, there's an even more extreme version (379 chars): https://github.com/finom/bala https://github.com/finom/bala
- Kequc 11y agoI have an even smaller one. > document.querySelectorAll('.my-selector')