h5bp / html5-boilerplate

A professional front-end template for building fast, robust, and adaptable web apps or sites.
https://html5boilerplate.com/
MIT License
56.11k stars 12.17k forks source link

use zepto for mobile #381

Closed meleyal closed 13 years ago

meleyal commented 13 years ago

Just an idea, but instead of jQuery + jmobile-lite.js, why not use Zepto?

https://github.com/madrobby/zepto

mathiasbynens commented 13 years ago

Zepto is great if you only need to target WebKit-based browsers. jQuery Mobile has much broader browser support.

meleyal commented 13 years ago

But the jmobile-lite.js file currently included in the mobile branch only includes a small part of jQuery Mobile (mainly touch stuff).

Is the plan to include the full jQM at some point?

chuanxshi commented 13 years ago

Hi, good question, i just removed the jquery mobile events earlier today, think it's best to let the user to decide what they want to use.

btw, the new version of mobile boilerplate is moved to https://github.com/shichuan/mobile-html5-boilerplate, there has been updates since, so feel free to review the new version instead.

meleyal commented 13 years ago

Looks good, thanks

chuanxshi commented 13 years ago

there are a couple of things need to sort out for the js portion of mobile bp. which is the main remaining thing.

i try to make sure that the mobile version inherits the same nature as the main one:

  1. keep it super lean, only the essential
  2. platform independent, no self-imposed philosophy

currently there are only two extra js files compare to the main boilerplate, one is respond.js for css media queries polyfill.

anther is helper.js, which is the one i am improving, 1. want to make it framework independent, 2. still thinking if it's needed for the mobile boilerplate in the first place (if it's essential)

any feedback and help will be appreciated. i created a new issue under mobile bp: https://github.com/shichuan/mobile-html5-boilerplate/issues/8

chuanxshi commented 13 years ago

closing this issue as this is moved to mobile h5bp