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

后端 未结 7 1195
旧巷少年郎
旧巷少年郎 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:56

    Looking at the code I found the following differences between jquery.js and jquery.slim.js:

    In the jquery.slim.js, the following features are removed:

    1. jQuery.fn.extend
    2. jquery.fn.load
    3. jquery.each // Attach a bunch of functions for handling common AJAX events
    4. jQuery.expr.filters.animated
    5. ajax settings like jQuery.ajaxSettings.xhr, jQuery.ajaxPrefilter, jQuery.ajaxSetup, jQuery.ajaxPrefilter, jQuery.ajaxTransport, jQuery.ajaxSetup
    6. xml parsing like jQuery.parseXML,
    7. animation effects like jQuery.easing, jQuery.Animation, jQuery.speed

提交回复
热议问题