We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I found out that the styletron config which is in the repo has one small issue.
const styletron = typeof window === 'undefined' ? new Server({ prefix: '_', }) : new Client({ hydrate: getHydrateClass(), prefix: '_', });
This code keeps the same instance on the server. So all the CSS which your whole website generates will contain in all your pages.
And the size of CSS starts increasing if you have something like backgroundImage. In this case, the website size will reach MB.
backgroundImage
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I found out that the styletron config which is in the repo has one small issue.
This code keeps the same instance on the server. So all the CSS which your whole website generates will contain in all your pages.
And the size of CSS starts increasing if you have something like
backgroundImage
. In this case, the website size will reach MB.The text was updated successfully, but these errors were encountered: