Hacker News new | ask | show | jobs
by masklinn 5038 days ago
> jQuery is kind of a big download for mobile, so I often skip it for small tasks.

That's what Zepto[0] is for: jQuery's API, 20% of the size (although it drops some features, e.g. $(selector) is pretty directly proxied to document.querySelectorAll, so $('> .foo') works in jQuery but blows up in Zepto)

[0] http://zeptojs.com/

1 comments

Ah, last I looked at Zepto, it's support for non-webkit browsers was pretty lacking. It's good to see they're making strides on the cross-platform comparability front. The supported browsers list looks pretty good now.
Been using it on mobile for about a year. It's small and snappy, and the people behind it are very responsive & opinionated in a good way.