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

Optimize themeSettings injection #1730

Merged

Conversation

bookernath
Copy link
Contributor

What?

We currently inject the entire theme_settings context object which is wasteful, especially since we only use 3 keys from it. I've optimized this import to be only what's used.

Screenshots (if appropriate)

Before:
image

After:
image

@bookernath bookernath requested review from junedkazi and a team July 21, 2020 00:31
@bigbot
Copy link

bigbot commented Jul 21, 2020

Autotagging @bigcommerce/storefront-team @davidchin

@BC-tymurbiedukhin
Copy link
Contributor

Great, thank you

@bookernath bookernath merged commit 2ee70d8 into bigcommerce:master Jul 27, 2020
@bookernath bookernath deleted the optimize-themeSettings-inject branch July 27, 2020 15:21
@mattolson
Copy link
Contributor

👏

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.

None yet

5 participants