FREN

#FF00AA


14 août 2010

“jQuery’s Mobile Strategy”

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.

I used to think that jQuery was the work of geniuses. But it seems that no open-source project can ever escape entropy. (It would be so simple to selectively load a different javascript file depending on the platform you’re running on — you know, if you intended to actually optimize for mobile browsers and mobile networks.)

 

* 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.

Vous voulez savoir quand je poste du contenu sur mon blog ? Il suffit de vous inscrire gratuitement à un agrégateur RSS (Feedly, NewsBlur, Inoreader, …) et d'ajouter www.ff00aa.com à vos flux (ou www.garoo.net pour vous abonner à tous les sujets). On n'a pas besoin de newsletters, pas besoin de Twitter, le RSS existe toujours.

Mentions légales : ce blog est hébergé par OVH, 2 rue Kellermann, 59100 Roubaix, France, www.ovhcloud.com.

Les données des visiteurs de ce blog ne sont pas utilisées ni transmises à des tiers. Les posteurs de commentaires peuvent demander leur suppression par e-mail.

Tous contenus © de l'auteur ou couverts par le droit de citation.