Alternatively lightweight mobile client is developing jQuery 5 (Mobile development) library

jQuery is great, but not all cases are suitable for use as your development jQuery library. If you just need a simple DOM manipulation or AJAX request processing, why use such a complex and bloated libraries do?

For cell phone or mobile client, such effects become more pronounced. Although we can use the CDN to help us improve the loading speed, or still takes time. The most sexy jQuery features - browser compatibility, for mobile phones, too heavyweight. Why do we need your application support browsers that entered the museum it? To know that we only need to use on iOS and Android systems ah!

Development issues

Here are more questions to be solved. jQuery animation approach is spaced modify CSS style attributes of an element. This in most desktop browsers deal with no problem, but on mobile devices inefficient.

Pure CSS animations way to achieve the contrary more quickly and smoothly.

zepto.js

This library may be the most abundant mobile devices iOS and android development libraries (use webit engine). It maintains almost all of the jQuery function, only 8kb and adds support for touch devices, and pure CSS animation. And supports modular, you can choose the features you need to develop applications.

Alternatively lightweight mobile client is developing jQuery 5 (Mobile development) library

Site | Github

Snack.js

An ultra-small super-simple class library. Very suitable for smaller projects, of course, enough to let everyone to develop a complex, cross-browser web applications. And zito.js not the same, it does not use jQuery API, only 3kb size, but you have to own to deal with animation.

Alternatively lightweight mobile client is developing jQuery 5 (Mobile development) library

Site | Github

$ ruling

$ Dom even smaller - 2kb. Support for browser compatibility, can handle animation (jQuery and similar treatment), but there is no similar array processing and AJAX processing functions. Ideal for developing responsive layout of the site on a smartphone, tablet, and desktop.

Alternatively lightweight mobile client is developing jQuery 5 (Mobile development) library

Github

xui.js

The 4kb XUI is a very small application framework used to develop a mobile web HTML5. Support different devices, and even specific version for webkit, ie and blackberry. Support touch event, jquery even have a compatible version.

Alternatively lightweight mobile client is developing jQuery 5 (Mobile development) library

Site | Github

140medley

You can use a smaller library - 140medley. The 0.5kb library inspired by 140bytes competition, contestants create tweet the size of the code. Support templates, events, and AJAX. More professional, the document can only be seen in the source code comments, ask your professional skills is relatively high!

Alternatively lightweight mobile client is developing jQuery 5 (Mobile development) library

Github

to sum up

Here we introduce a few good mobile framework, but not large enough fame or website. If you also find a lot of good things, please share with us! Thank you!

Reproduced in: https: //my.oschina.net/zhepama/blog/265029

Guess you like

Origin blog.csdn.net/weixin_33963189/article/details/91927346