Cash (Tiny jQuery Alternative)

The README for Cash is straightforward:

Cash is an absurdly small jQuery alternative for modern browsers (IE11+) that provides jQuery-style syntax for manipulating the DOM. Utilizing modern browser features to minimize the codebase, developers can use the familiar chainable methods


The post Cash (Tiny jQuery Alternative) appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Chris Coyier

The README for Cash is straightforward:

Cash is an absurdly small jQuery alternative for modern browsers (IE11+) that provides jQuery-style syntax for manipulating the DOM. Utilizing modern browser features to minimize the codebase, developers can use the familiar chainable methods at a fraction of the file size. 100% feature parity with jQuery isn’t a goal, but Cash comes helpfully close, covering most day to day use cases.

6 KB minified and gzipped, which is even smaller than Zepto. Zepto’s whole point was a smaller jQuery, but it hasn’t been touched in a bunch of years, so there is that too.

I wonder how much smaller Cash would be if it dropped IE 11 support.

jQuery is still huuuuugggggeeee, only just recently having peaked in usage and showing signs of decline. That must be because it comes on most WordPress sites, right?! That’s like 42% of all sites right there.

Anyway, if you tend to reach for jQuery just for some convincing, Cash looks like a nice alternative. I don’t blame you either. Typing $ instead of document.querySelectorAll still feels good to me, not to mention all the other fanciness tucked behind that dollar sign function.

Also worth mentioning: if you’re looking to straight-up remove jQuery from a project, replace-jquery might be worth a look:

Automatically find jQuery methods from existing projects and generate vanilla js alternatives.


The post Cash (Tiny jQuery Alternative) appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Chris Coyier


Print Share Comment Cite Upload Translate Updates
APA

Chris Coyier | Sciencx (2021-10-11T20:28:24+00:00) Cash (Tiny jQuery Alternative). Retrieved from https://www.scien.cx/2021/10/11/cash-tiny-jquery-alternative/

MLA
" » Cash (Tiny jQuery Alternative)." Chris Coyier | Sciencx - Monday October 11, 2021, https://www.scien.cx/2021/10/11/cash-tiny-jquery-alternative/
HARVARD
Chris Coyier | Sciencx Monday October 11, 2021 » Cash (Tiny jQuery Alternative)., viewed ,<https://www.scien.cx/2021/10/11/cash-tiny-jquery-alternative/>
VANCOUVER
Chris Coyier | Sciencx - » Cash (Tiny jQuery Alternative). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/11/cash-tiny-jquery-alternative/
CHICAGO
" » Cash (Tiny jQuery Alternative)." Chris Coyier | Sciencx - Accessed . https://www.scien.cx/2021/10/11/cash-tiny-jquery-alternative/
IEEE
" » Cash (Tiny jQuery Alternative)." Chris Coyier | Sciencx [Online]. Available: https://www.scien.cx/2021/10/11/cash-tiny-jquery-alternative/. [Accessed: ]
rf:citation
» Cash (Tiny jQuery Alternative) | Chris Coyier | Sciencx | https://www.scien.cx/2021/10/11/cash-tiny-jquery-alternative/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.