What is the difference between Zepto and jQuery 2?

前端 未结 6 394
情话喂你
情话喂你 2021-02-01 00:21

There are those two similar projects:

Zepto.js

Zepto is a minimalist JavaScript library for modern browsers with a largely jQuery-compatible API

6条回答
  •  醉话见心
    2021-02-01 00:38

    The primary difference between Zepto.js and jQuery are their respective file sizes of Zepto.js's ~20kb (minified, not gzipped) instead of jQuery's ~80kb,And Zepto.js's ~10kb (minified, Gzipped) instead of jQuery's ~30kb. Furthermore, Zepto’s support for browsers such as IE<10 is either lacking or not guaranteed, its target platforms are:

    • Safari 5+ (desktop)
    • Chrome 5+ (desktop)
    • Mozilla Firefox 4+
    • iOS 4+ Safari
    • Android 2.2+ Browser
    • Other WebKit-based browsers/runtimes
    • webOS 1.4.5+ Browser
    • BlackBerry Tablet OS 1.0.7+ Browser
    • Amazon Silk 1.0+
    • Opera 10+
    • Internet Explorer 10+

提交回复
热议问题