- Notifications
You must be signed in to change notification settings - Fork20.6k
Core: Exclude callbacks & deferred modules in the slim build as well#4553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
f0f980d
to4112512
CompareSGTM |
We discussed it during the meeting. We'd like to first unbreak current jQuery slim tests on |
4112512
toe7ed773
Comparee7ed773
to5770817
CompareThis commit fixes unit tests for the following builds:1. The no-deprecated build: `custom:-deprecated`2. The current slim build: `custom:-ajax,-effects`3. The future (#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`It also adds separate Travis jobs for the no-deprecated & slim builds.Closesgh-4577
5770817
to802a984
Compare802a984
toccdc1cc
CompareThis commit fixes unit tests for the following builds:1. The no-deprecated build: `custom:-deprecated`2. The current slim build: `custom:-ajax,-effects`3. The future (jquery#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`It also adds separate Travis jobs for the no-deprecated & slim builds.Closesjquerygh-4577
So far, the slim build only excluded ajax & effects modules. As many web appsright now rely on native Promises, often with a polyfill for legacy browsers,deferred & callbacks modules are not that useful for sites that already excludeajax & effects modules.This decreases the gzipped minified size of the slim module by 1758 bytes,to 19656 bytes (below 20k!).
ccdc1cc
to1c160bb
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks like it passes slim tests. 👍 from me.
Dave gave his approval before & we discussed this change a while back, it was just on hold until tests for the slim build are added. Therefore, I'm going to merge it now. |
This commit fixes unit tests for the following builds:1. The no-deprecated build: `custom:-deprecated`2. The current slim build: `custom:-ajax,-effects`3. The 4.0 (jquery#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`It also adds separate Travis jobs for the no-deprecated & slim builds.Apart from that, add intuitive names to Travis jobs. Otherwise it's hard to seeat a glance that a particular job is running on Firefox ESR, for example.Refjquerygh-4577Refjquerygh-4596
This commit fixes unit tests for the following builds:1. The no-deprecated build: `custom:-deprecated`2. The current slim build: `custom:-ajax,-effects`3. The 4.0 (jquery#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`It also adds separate Travis jobs for the no-deprecated & slim builds.Apart from that, add intuitive names to Travis jobs. Otherwise it's hard to seeat a glance that a particular job is running on Firefox ESR, for example.Refjquerygh-4577Refjquerygh-4596
This commit fixes unit tests for the following builds:1. The no-deprecated build: `custom:-deprecated`2. The current slim build: `custom:-ajax,-effects`3. The 4.0 (jquery#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`It also adds separate Travis jobs for the no-deprecated & slim builds.Apart from that, add intuitive names to Travis jobs. Otherwise it's hard to seeat a glance that a particular job is running on Firefox ESR, for example.Refjquerygh-4577Refjquerygh-4596
This commit fixes unit tests for the following builds:1. The no-deprecated build: `custom:-deprecated`2. The current slim build: `custom:-ajax,-effects`3. The 4.0 (#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`It also adds separate Travis jobs for the no-deprecated & slim builds.Apart from that, add intuitive names to Travis jobs. Otherwise it's hard to seeat a glance that a particular job is running on Firefox ESR, for example.Refgh-4577Refgh-4596Closesgh-4600
Uh oh!
There was an error while loading.Please reload this page.
Summary
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!).
Checklist
New tests have been added to show the fix or feature worksIf needed, a docs issue/PR was created athttps://github.com/jquery/api.jquery.com