Is Zepto just a subset of jQuery?

I was amazed that backbone.js could use jQuery or Zepto as its "helper library". How were Zepto people able to set jQuery compatible syntax? Is Zepto just a subset of jQuery?

+4
source share
2 answers

They seem to be trying to preserve jQuery style syntax and provide a mini library that includes only the most useful features.

Zepto.js must carefully imitate him. Please note that emulating all jQuery functions is not the goal of the project, rather we want to use the most useful parts, while maintaining a minimal goal.

From: https://github.com/madrobby/zepto/blob/master/README.rdoc

+3
source

Zepto is a new library whose goal is to simplify the transition from jQuery. Obviously, they leave a lot of features that you will find in jQuery to do this.

It also looks like they also support prototype functionality.

I also won’t be surprised if they choose smaller blocks of code for performance, I’m not saying that it negatively affects performance, or jQuery is too bloated, but a different look than jQuery recently.

+1
source

All Articles