-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Remove internal args to on & remove methods #2366
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Nice 👍 |
|
I wonder if it would gzip better if we did |
In |
|
👍 thanks for doing this. |
|
I'll land this shortly barring any new remarks. |
src/manipulation.js
Outdated
There 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.
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.
There 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.
Currently it's only -3 bytes but I'll do it.
ea6c1b5 to
2aa6942
Compare
2aa6942 to
349edbd
Compare
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
onto a proper/var/directory but it only increased the size further.Any ideas on how to reduce the size increase?