Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

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

Merged
mgol merged 1 commit intojquery:masterfrommgol:slim-build-exclude-more
Jan 20, 2020

Conversation

mgol
Copy link
Member

@mgolmgol commentedNov 30, 2019
edited
Loading

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

@mgolmgol added this to the4.0.0 milestoneNov 30, 2019
@mgolmgol changed the titleCore: Exclude callbacks & deferred modules in the slim build as well.Core: Exclude callbacks & deferred modules in the slim build as wellDec 2, 2019
@mgolmgolforce-pushed theslim-build-exclude-more branch fromf0f980d to4112512CompareDecember 2, 2019 18:59
@dmethvin
Copy link
Member

SGTM

@mgolmgol self-assigned thisDec 3, 2019
@mgol
Copy link
MemberAuthor

mgol commentedDec 9, 2019

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

@mgolmgolforce-pushed theslim-build-exclude-more branch from4112512 toe7ed773CompareDecember 9, 2019 19:04
@mgolmgolforce-pushed theslim-build-exclude-more branch frome7ed773 to5770817CompareDecember 16, 2019 18:45
mgol added a commit that referenced this pull requestJan 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.Closesgh-4577
@mgolmgolforce-pushed theslim-build-exclude-more branch from5770817 to802a984CompareJanuary 7, 2020 23:01
@mgol
Copy link
MemberAuthor

mgol commentedJan 7, 2020

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

Ready for a final review.

@mgolmgolforce-pushed theslim-build-exclude-more branch from802a984 toccdc1ccCompareJanuary 7, 2020 23:37
gaohuia pushed a commit to gaohuia/jquery that referenced this pull requestJan 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.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!).
@mgolmgolforce-pushed theslim-build-exclude-more branch fromccdc1cc to1c160bbCompareJanuary 13, 2020 18:29
Copy link
Member

@timmywiltimmywil 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
Copy link
MemberAuthor

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.

@mgolmgol merged commitfbc44f5 intojquery:masterJan 20, 2020
@mgolmgol deleted the slim-build-exclude-more branchJanuary 20, 2020 17:58
mgol added a commit to mgol/jquery that referenced this pull requestJan 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 seeat a glance that a particular job is running on Firefox ESR, for example.Refjquerygh-4577Refjquerygh-4596
mgol added a commit to mgol/jquery that referenced this pull requestJan 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 seeat a glance that a particular job is running on Firefox ESR, for example.Refjquerygh-4577Refjquerygh-4596
mgol added a commit to mgol/jquery that referenced this pull requestJan 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 seeat a glance that a particular job is running on Firefox ESR, for example.Refjquerygh-4577Refjquerygh-4596
mgol added a commit that referenced this pull requestJan 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 seeat a glance that a particular job is running on Firefox ESR, for example.Refgh-4577Refgh-4596Closesgh-4600
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timmywiltimmywiltimmywil approved these changes

Assignees

@mgolmgol

Milestone
4.0.0
Development

Successfully merging this pull request may close these issues.

3 participants
@mgol@dmethvin@timmywil

[8]ページ先頭

©2009-2025 Movatter.jp