Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Jun 1, 2015

Fixes gh-2301

+24 bytes, most of which come from event changes. The manipulation change adds just 5 bytes.

I've also tried to move on to a proper /var/ directory but it only increased the size further.

Any ideas on how to reduce the size increase?

@timmywil
Copy link
Member

timmywil commented Jun 1, 2015

Nice 👍

@timmywil
Copy link
Member

timmywil commented Jun 1, 2015

I wonder if it would gzip better if we did on.call(this, ...

@mgol
Copy link
Member Author

mgol commented Jun 1, 2015

I wonder if it would gzip better if we did on.call(this, ...

In manipulation switching to .call adds 11 bytes, in event it adds 3 bytes. I tried that at the beginning but I discovered it's actually larger.

@dmethvin
Copy link
Member

dmethvin commented Jun 1, 2015

👍 thanks for doing this.

@mgol
Copy link
Member Author

mgol commented Jun 8, 2015

I'll land this shortly barring any new remarks.

Copy link
Member

Choose a reason for hiding this comment

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

There's small savings (4 btyes min+gzip) to defining detach immediately before remove and moving both of them to the top of the jQuery.fn.extend block, but that's about it. I'm in favor of this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently it's only -3 bytes but I'll do it.

@mgol mgol force-pushed the remove-internal-args branch from ea6c1b5 to 2aa6942 Compare June 13, 2015 21:47
mgol added a commit to mgol/jquery that referenced this pull request Jun 13, 2015
@mgol mgol force-pushed the remove-internal-args branch from 2aa6942 to 349edbd Compare June 13, 2015 22:11
@mgol mgol merged commit 349edbd into jquery:master Jun 13, 2015
@mgol mgol deleted the remove-internal-args branch June 13, 2015 22:20
mgol added a commit that referenced this pull request Jun 13, 2015
@mgol mgol removed the Needs review label Jul 31, 2015
mgol added a commit that referenced this pull request Nov 10, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Remove internal args to .on & .remove

5 participants