Great news! jQuery is updating for mobile platforms, I’ll finally be able to use it everywhere again! Oh, wait…
Note that we’re not releasing a separate “mobile only” build of jQuery. The bug fixes and workarounds that we develop will be included directly in mainline jQuery. You will be able to continue using the single script file containing jQuery and get all the benefits of working across all the new mobile browsers. Thus far these changes are only yielding a minimal increase in file size (no more than a couple hundred bytes) and no appreciable change in performance.
Well, that’s great, isn’t it — because jQuery is already too big to fit in most iPhones’ web cache* (meaning it has to be reloaded with every page, meaning page loads are slow, meaning you just can’t use it on an iPhone site**), so bigger is… better than… a mobile-only version… that would have been smaller… and would have worked.
* In case you want to tell me that jQuery is 24KB when gzipped: The object size limitation in Safari is based on the decompressed file. I just downloaded the latest minified jQuery, and it’s 70KB, so it would be cached on no iOS device except the iPhone 4.
** Unless you make it one single page that loads everything in Ajax, which is… well, I think it’s more acceptable on the mobile web than on the desktop, but it’s still poor form. And if you’re doing a full-on web-app, people want App Store apps instead anyway.