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

Move sanitize so we don't import the world into every bundle #7334

Merged
merged 1 commit into from
Feb 23, 2018

Conversation

jbalboni
Copy link
Contributor

The user profile code imports a santizeForm function from a helper file that imports all the schemaform code, which meant that the schemaform code was getting into every bundle.

Moving this function knocks 40kb (gzipped) off of non-form app bundles, which is around a 30% reduction, depending on the app.

Copy link
Contributor

@cehsu cehsu left a comment

Choose a reason for hiding this comment

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

LGTM. Great improvement!

@jbalboni jbalboni merged commit 453ccc3 into master Feb 23, 2018
@jbalboni jbalboni deleted the schemaform-bundle-jsb branch February 23, 2018 18:07
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.

3 participants