Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQueryMobile on Zepto.js?

Tags:

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

like image 501
Samber Valley Avatar asked Jan 14 '11 12:01

Samber Valley


1 Answers

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.

like image 197
dave1010 Avatar answered Sep 23 '22 21:09

dave1010