jquery-min version?

2019-01-25 04:40发布

I noticed that there is always a "min" version (stands for mini?) for most JavaScript libraries (e.g., jQuery).

What is the difference? Less functionality but smaller size?

Is this something someone should consider using? (There are a lot of min versions out there.)

8条回答
啃猪蹄的小仙女
2楼-- · 2019-01-25 05:23

This is a version of jQuery that has a smaller file size (minified). Same functions, just a smaller file that the browser has to download.

查看更多
smile是对你的礼貌
3楼-- · 2019-01-25 05:29

Minified versions just have whitespace removed, to make them faster to download. Otherwise, they are identical.

查看更多
登录 后发表回答