diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-01-20 18:58:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-20 18:58:23 +0100 |
commit | fbc44f52fe76e1b601da76a1d7f8ef27884c06da (patch) | |
tree | c667b6a721cb50edfbfa52fd410696dc8a201437 | |
parent | ff2819911da6cbbed5ee42c35d695240f06e65e3 (diff) | |
download | jquery-fbc44f52fe76e1b601da76a1d7f8ef27884c06da.tar.gz jquery-fbc44f52fe76e1b601da76a1d7f8ef27884c06da.zip |
Core: Exclude callbacks & deferred modules in the slim build as well
So far, the slim build only excluded ajax & effects modules. As many web apps
right now rely on native Promises, often with a polyfill for legacy browsers,
deferred & callbacks modules are not that useful for sites that already exclude
ajax & effects modules.
This decreases the gzipped minified size of the slim module by 1760 bytes,
to 19706 bytes (below 20k!).
Closes gh-4553
-rw-r--r-- | build/tasks/build.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js index 18d101f0b..3671b4d99 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -306,7 +306,7 @@ module.exports = function( grunt ) { // the official slim build .reduce( ( acc, elem ) => acc.concat( elem === "slim" ? - [ "-ajax", "-effects" ] : + [ "-ajax", "-callbacks", "-deferred", "-effects" ] : [ elem ] ), [] ) |