The README for Money 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 reduce the codebase, builders can use the acquainted chainable strategies at a fraction of the file dimension. 100% characteristic parity with jQuery isn’t a objective, however Money comes helpfully shut, masking most everyday 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 may be that too.
I’m wondering how a lot smaller Money can be if it dropped IE 11 help.
jQuery remains to be huuuuugggggeeee, solely only recently having peaked in utilization and displaying indicators of decline. That have to be as a result of it comes on most WordPress websites, proper?! That’s like 42% of all websites proper there.
Anyway, in the event you have a tendency to succeed in for jQuery only for some convincing, Money seems like a pleasant different. I don’t blame you both. Typing $ as a substitute of doc.querySelectorAll nonetheless feels good to me, to not point out all the opposite fanciness tucked behind that greenback signal perform.
—
Additionally value mentioning: in the event you’re seeking to straight-up take away jQuery from a undertaking, replace-jquery may be value a glance:
Robotically discover jQuery strategies from present tasks and generate vanilla js options.
The put up Money (Tiny jQuery Various) appeared first on CSS-Tips. You may help CSS-Tips by being an MVP Supporter.
Subscribe to MarketingSolution.
Receive web development discounts & web design tutorials.
Now! Lets GROW Together!