Money (Tiny jQuery Different)
The README for Cash is easy:
Money is an absurdly small jQuery different for contemporary browsers (IE11+) that gives jQuery-style syntax for manipulating the DOM. Using fashionable browser options to attenuate the codebase, developers can use the acquainted chainable strategies at a fraction of the file dimension. 100% function parity with jQuery isn’t a purpose, however Money comes helpfully shut, masking most day after day use instances.
6 KB minified and gzipped, which is even smaller than Zepto. Zepto’s complete level was a smaller jQuery, however it hasn’t been touched in a bunch of years, so there’s that too.
I ponder how a lot smaller Money can be if it dropped IE 11 assist.
jQuery continues to be used on an absolute ton of websites, solely just recently having peaked in utilization and exhibiting indicators of decline. That should be as a result of it comes on most WordPress websites, proper?! That’s like 42% of all websites proper there.
Anyway, for those who have a tendency to achieve for jQuery only for some handy APIs, Money seems like a pleasant different. I don’t blame you both. Typing
$ as an alternative of
doc.querySelectorAll nonetheless feels good to me, to not point out all the opposite fanciness tucked behind that greenback signal operate.
Additionally value mentioning: for those who’re seeking to straight-up take away jQuery from a venture, replace-jquery is perhaps value a glance:
Routinely discover jQuery strategies from current tasks and generate vanilla js alternate options.
Checkout extra Articles on Sayed.CYou