Comment

Comment by ge96

I wouldn't mind a smaller version of jQuery, I've heard of some, I've also tried min/slim versions.

Still including a 200+kb file for jQuery... to just use well these are the most common ones I use:

var targ = $("#targ"); targ.show,.hide,.val(),.text(),.css,.post(),.done,.promise(),.each(),.remove(),.on('blur" or .on({ blur: mouseup, .height(), .width(), .scrollTop(), etc...

Probably much more, yeah certainly shorter code, gotten used to using it.

edit: At this time I always build with jQuery, always include it in the <head> section. Could wait if it's a potential thing to slow down loading of site but I usually just have a copy on my server.

parent ge96 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton