News for hackers. Stuff that matters.
Re:jQuery 3.6.0 by megous on Tuesday March 02, 2021 @03:25PM (#26320137)
Yeah, oh so many years ago I realized that I use just a small subset of jQuery, and just rewrote those bits, to avoid having to inject whole of jQuery into all pages that I browse (I had some global https?://* userscripts, so I was basically injecting jQuery into every single page and frame).

https://megous.com/dl/tmp/basic.js

1.3kB compressed. Much better. :) And I avoided having to rewrite my extensions with platform APIs. That was before FF killed all the joy in writing userscripts for me, because I was no longer able to install and update them just by copying them to mozilla folder and had to invoke a lot of clicking ceremony to just get my 20 scripts or so from git into firefox past the webextension limitations on storage/access to mozilla folder.

Re:jQuery 3.6.0 by akie on Wednesday March 03, 2021 @03:12AM (#26325924)
You should totally open-source that, put it on NPM, and write an article or so about it.
Re:jQuery 3.6.0 by megous on Friday March 05, 2021 @03:43PM (#26361831)
Everyone will have different set of methods they use. Point of this is that if you need some method you can just add it in in 4-5 lines or remove one you don't need. So it's not the best fit for NPM. It's good fit for good old copy/paste into a project, if you're optimizing for size/memory use. :)