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

Manipulation:Selector: Use the nodeName util where possible to save size#4504

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:nodeName
Oct 8, 2019

Conversation

mgol
Copy link
Member

@mgolmgol commentedOct 7, 2019
edited
Loading

Summary

Use thenodeName util where possible to save size.

-20 bytes

Checklist

@mgolmgol added this to the4.0.0 milestoneOct 7, 2019
@mgolmgol self-assigned thisOct 7, 2019
@@ -603,13 +604,13 @@ Expr = jQuery.expr = {
},

TAG: function( nodeNameSelector ) {
varnodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
varexpectedNodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I thought it might save a bit more to name thisnodeNameExpected but it was the same. One day I will understand gzip.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@dmethvin Minification happens before gzip so source variable names are irrelevant.

Copy link
Member

@gibson042gibson042 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nice!

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.

ALL THE BYTES

@mgolmgol merged commit4504fc3 intojquery:masterOct 8, 2019
@mgolmgol deleted the nodeName branchOctober 8, 2019 20:42
@locklockbot locked asresolvedand limited conversation to collaboratorsApr 15, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dmethvindmethvindmethvin approved these changes

@timmywiltimmywiltimmywil approved these changes

@gibson042gibson042gibson042 approved these changes

Assignees

@mgolmgol

Milestone
4.0.0
Development

Successfully merging this pull request may close these issues.

4 participants
@mgol@dmethvin@timmywil@gibson042

[8]ページ先頭

©2009-2025 Movatter.jp