What are the differences between normal and slim package of jquery?

后端 未结 7 1378
旧巷少年郎
旧巷少年郎 2020-11-22 03:27

At CDNJS jquery.slim package is placed. It has a smaller size. What are the major differences from an original? A quick look at the code didn\'t bring the answer, and at the

7条回答
  •  佛祖请我去吃肉
    2020-11-22 04:04

    The short answer taken from the announcement of jQuery 3.0 Final Release :

    Along with the regular version of jQuery that includes the ajax and effects modules, we’re releasing a “slim” version that excludes these modules. All in all, it excludes ajax, effects, and currently deprecated code.

    The file size (gzipped) is about 6k smaller, 23.6k vs 30k.

提交回复
热议问题