Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimalist cacheable jQuery/javascript library for iPhone?

Given the iPhone's 25k limit for caching of files, I'm wondering if there's interest in an iPhone optimized javascript library that makes caching a top level goal. Since it'd be iPhone only it could get rid of most cross-browser cruft and rely on safari specific capabilities, hopefully cutting down some of the girth and staying with 25k.

John Resig discusses this briefly, although mostly to dismiss it, it seems. He does mention:

if you're particularly excited about breaking jQuery down into little chunks you can grab the individual pieces from SVN and build a custom copy.

Anyone tried that?

Dojo implements a 6k version that seems to rely on deferred loading. I'm mostly a jQuery user so I haven't given it a try, but it looks interesting.

Overall: what do you think about a safari/iphone specific javascript library that implements, say, the top 90% most used APIs in jQuery (or your other favorite library)?

like image 373
Parand Avatar asked Nov 24 '08 22:11

Parand


1 Answers

Newer update: looks like Zepto is the way to go these days.

Found XUI, looks like what I was looking for, although I haven't given it a try yet.

like image 129
Parand Avatar answered Sep 30 '22 00:09

Parand