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 https://jquery.com I've not found any reference about slim
package.
So, what are the differences between jquery.js
and jquery.slim.js
?
Slim is an ultra fast, native and elegant library for Web Components development.
The slim jQuery version does not include the ajax function.
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.
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:
jQuery.fn.extend
jquery.fn.load
jquery.each
(attach a bunch of functions for handling common AJAX events)jQuery.expr.filters.animated
jQuery.ajaxSettings.xhr
, jQuery.ajaxPrefilter
, jQuery.ajaxSetup
, jQuery.ajaxPrefilter
, jQuery.ajaxTransport
)jQuery.parseXML
),jQuery.easing
, jQuery.Animation
, jQuery.speed
)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With