jQueryMobile on Zepto.js?

Samber Valley picture Samber Valley · Jan 14, 2011 · Viewed 10.4k times · Source

I'm wondering if someone has tried already to port jQueryMobile on top of Zepto.js (http://zeptojs.com/) instead of the required jQuery?

Answer

dave1010 picture dave1010 · Feb 23, 2011

The main feature of Zepto.js over jQuery is its file size of ~10kb (minified, not gzipped) instead of jQuery's ~80kb. If you were to replace jQuery wuth Zepto.js then you'd still have to include jQuery mobile, which weighs in about 95kb (JS & CSS).

  • jQuery and jQuery mobile: 175kb
  • Zepto.js and jQuery mobile: 115kb

You'd save about 1/3rd of the download weight (not including HTML, images and other JS), making making a port of jQuery Mobile to Zepto.js unlikely to be worth the time.

Zepto.js currently also only supports WebKit browsers, meaning you'd be loosing support of Firefox Mobile and IE7&9 Mobile too.

Update: Zepto now supports a lot more platforms.