🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Nov 30, 2019

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

@mgol mgol added this to the 4.0.0 milestone Nov 30, 2019
@mgol mgol changed the title Core: Exclude callbacks & deferred modules in the slim build as well. Core: Exclude callbacks & deferred modules in the slim build as well Dec 2, 2019
@mgol mgol force-pushed the slim-build-exclude-more branch from f0f980d to 4112512 Compare December 2, 2019 18:59
@dmethvin
Copy link
Member

dmethvin commented Dec 3, 2019

SGTM

@mgol mgol self-assigned this Dec 3, 2019
@mgol
Copy link
Member Author

mgol commented Dec 9, 2019

We discussed it during the meeting. We'd like to first unbreak current jQuery slim tests on master and afterwards update this PR to not re-break them. Only then we'll merge it.

@mgol mgol force-pushed the slim-build-exclude-more branch from 4112512 to e7ed773 Compare December 9, 2019 19:04
@mgol mgol force-pushed the slim-build-exclude-more branch from e7ed773 to 5770817 Compare December 16, 2019 18:45
mgol added a commit that referenced this pull request Jan 7, 2020
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 future (#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`

It also adds separate Travis jobs for the no-deprecated & slim builds. 

Closes gh-4577
@mgol mgol force-pushed the slim-build-exclude-more branch from 5770817 to 802a984 Compare January 7, 2020 23:01
@mgol
Copy link
Member Author

mgol commented Jan 7, 2020

PR #4577 landed, I updated this one to redefine the slim alias instead. Thanks to #4577, the new build passes unit tests and we verify that on Travis.

Ready for a final review.

@mgol mgol force-pushed the slim-build-exclude-more branch from 802a984 to ccdc1cc Compare January 7, 2020 23:37
gaohuia pushed a commit to gaohuia/jquery that referenced this pull request Jan 9, 2020
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 future (jquery#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`

It also adds separate Travis jobs for the no-deprecated & slim builds. 

Closes jquerygh-4577
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 1758 bytes,
to 19656 bytes (below 20k!).
@mgol mgol force-pushed the slim-build-exclude-more branch from ccdc1cc to 1c160bb Compare January 13, 2020 18:29
Copy link
Member

@timmywil timmywil left a 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.

@mgol mgol removed the Needs review label Jan 20, 2020
@mgol
Copy link
Member Author

mgol commented Jan 20, 2020

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.

@mgol mgol merged commit fbc44f5 into jquery:master Jan 20, 2020
@mgol mgol deleted the slim-build-exclude-more branch January 20, 2020 17:58
mgol added a commit to mgol/jquery that referenced this pull request Jan 21, 2020
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 see
at a glance that a particular job is running on Firefox ESR, for example.

Ref jquerygh-4577
Ref jquerygh-4596
mgol added a commit to mgol/jquery that referenced this pull request Jan 21, 2020
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 see
at a glance that a particular job is running on Firefox ESR, for example.

Ref jquerygh-4577
Ref jquerygh-4596
mgol added a commit to mgol/jquery that referenced this pull request Jan 21, 2020
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 see
at a glance that a particular job is running on Firefox ESR, for example.

Ref jquerygh-4577
Ref jquerygh-4596
mgol added a commit that referenced this pull request Jan 27, 2020
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 see
at a glance that a particular job is running on Firefox ESR, for example.

Ref gh-4577
Ref gh-4596
Closes gh-4600
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

3 participants