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

Fix flash of unstyled content in dev mode #83

Open
wants to merge 1 commit into
base: ocasio
Choose a base branch
from

Conversation

sophiebits
Copy link

In dev mode, we were pulling in styles as part of app.js which comes after all the content. If we move these to a separate bundle that's loaded in it's more representative of how CSS is loaded in prod, and we don't get a flash of unstyled content in dev.

In dev mode, we were pulling in styles as part of app.js which comes after all the content. If we move these to a separate bundle that's loaded in <head> it's more representative of how CSS is loaded in prod, and we don't get a flash of unstyled content in dev.
@sophiebits
Copy link
Author

You need to restart webpack for this to work. Didn't test prod mode; not sure how to.

@leosussan leosussan requested a review from ben-pr-p July 10, 2018 11:41
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