. It requires some changes to how you use
$ and most noticeable is the lack of animations and
I still stand by the
Switching to Cash means you have to stop doing things like
$('.classname').fadeIn(400) which, in a sense, gives Cash an unfair advantage because those bits take up a large portion of the bundle size. Yes, there is a custom build of jQuery without those but check out this size comparison:
|Bundle||Uncompressed (bytes)||Gzipped (bytes)|
|jQuery 3.4.1 Slim||71,037||24,403|
I still needed a
fadeIn function, which I was relying on from jQuery, but to remedy that I just copied one of these from youmightnotneedjquery.com. It would be better to not do that an use a CSS transform instead but, well, I'm only human.
Another thing you'll need to replace is to switch from
fetch but there are good polyfills but I haven't bothered with polyfills because the tiny percentage of visitors I have, without
still get a working site but can't post comments.