Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Prevent FOUC from page-specific CSS #77

Merged
merged 1 commit into from
Jul 13, 2017
Merged

Conversation

davidtheclark
Copy link
Contributor

Closes #71.

If/when a solution to nfl/react-helmet#297 gets released, we might be able to revert this stuff. But until then, I think this gets rid of the flash-of-unstyled-content when you dynamically load a page with page-specific CSS.

@jfurrow for review, since I was running with your react-page-components example.

Copy link
Contributor

@jfurrow jfurrow left a comment

Choose a reason for hiding this comment

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

Whoa, this is awesome. Great work!

@davidtheclark davidtheclark merged commit d2a62a6 into master Jul 13, 2017
@davidtheclark davidtheclark deleted the 71-page-css-fouc branch July 13, 2017 19:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants