8000 Core: Exclude callbacks & deferred modules in the slim build as well · jquery/jquery@fbc44f5 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fbc44f5

Browse files
authored
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
1 parent ff28199 commit fbc44f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/tasks/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ module.exports = function( grunt ) {
306306
// the official slim build
307307
.reduce( ( acc, elem ) => acc.concat(
308308
elem === "slim" ?
309-
[ "-ajax", "-effects" ] :
309+
[ "-ajax", "-callbacks", "-deferred", "-effects" ] :
310310
[ elem ]
311311
), [] )
312312

0 commit comments

Comments
 (0)
0