Skip to content
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

Minification improvements #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

matthewhively
Copy link

@matthewhively matthewhively commented Dec 16, 2019

Low hanging fruit only
this => self
window => _window
document => _document
Moved a few var declarations to be next to one another

Minified size reduced by 7%

NOTE: While a version field has been added to the javascript file, I did not adjust the version tag. I figure that should be handled by the maintainer.
NOTE: A version number was not added to the CSS file as it has not been modified since the initial commit.

low hanging fruit only
'this' => 'self'
'window' => '_window'
'document' => '_document'
a few var declarations moved to be next to one another

Minified size reduced by 6%
Further squash document references
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant