菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
275
0

jquery slim是什么?

原创
05/13 14:22
阅读数 96116

在jQuery3中,推出了一个slim版本。slim,百度翻译:细长的; 苗条的,纤细的; 微小的; 无价值的。

区别概述:

slim即简化版,比普通版本缺少Ajax和特效模块模块。

官方发布地址:http://blog.jquery.com/2017/03/20/jquery-3-2-1-now-available/

说明原文 Sometimes you don’t need ajax, or you prefer to use one of the many standalone libraries that focus on ajax requests. And often it is simpler to use a combination of CSS and class manipulation for all your web animations. Along with the regular version of jQuery that includes the ajax and effects modules, we’ve released a “slim” version that excludes these modules. The size of jQuery is very rarely a load performance concern these days, but the slim build is about 6k gzipped bytes smaller than the regular version – 23.6k vs 30k.

谷歌翻译 有时你不需要Ajax,或者你更喜欢使用专注于Ajax请求的独立库中的一个。 对于所有的Web动画,通常使用CSS和类操作的组合更为简单。 除了包含ajax和特效模块的常规jQuery版本之外,我们还发布了一个排除这些模块的“超薄”版本。 jQuery的大小现在很少是一个负载性能的问题,但是超薄的版本比普通版本小了大约6k个字节(23.6k VS 30k 压缩后)。

大小截图:

1.png

用过Bootstrap4的同学会发现,官方手册中介绍中,默认使用的jQuery就是slim版本。

想要了解更多相关知识,可访问 前端学习网站!!

发表评论

0/200
275 点赞
0 评论
收藏
为你推荐 换一批