The README for Money is easy:

Money is an absurdly small jQuery various for contemporary browsers (IE11+) that gives jQuery-style syntax for manipulating the DOM. Using fashionable browser options to attenuate the codebase, builders can use the acquainted chainable strategies at a fraction of the file measurement. 100% function parity with jQuery isn’t a purpose, however Money comes helpfully shut, overlaying 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, but it surely hasn’t been touched in a bunch of years, so there’s that too.

I’m wondering 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 appears like a pleasant various. 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 perform.

Additionally price mentioning: for those who’re trying to straight-up take away jQuery from a mission, replace-jquery is perhaps price a glance:

Mechanically discover jQuery strategies from current initiatives and generate vanilla js options.

#Money #Tiny #jQuery #Different #CSSTricks

Leave a Reply

Your email address will not be published. Required fields are marked *