What are the differences between normal and slim package of jquery?
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
- AJAX settings (
jQuery.ajaxSettings.xhr
,jQuery.ajaxPrefilter
,jQuery.ajaxSetup
,jQuery.ajaxPrefilter
,jQuery.ajaxTransport
) - XML parsing (
jQuery.parseXML
), - Animation effects (
jQuery.easing
,jQuery.Animation
,jQuery.speed
)
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.