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

后端 未结 7 1301
旧巷少年郎
旧巷少年郎 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 03:58

    I could see $.ajax is removed from jQuery slim 3.2.1

    From the jQuery docs

    You can also use the slim build, which excludes the ajax and effects modules

    Below is the comment from the slim version with the features removed

    /*! jQuery v3.2.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector | (c) JS Foundation and other contributors | jquery.org/license */
    

提交回复
热议问题