Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #3407, Move homepage CSS above JS to avoid flash of unstyled content
Browse files Browse the repository at this point in the history
If this doesn't work, we can try inlining CSS or hiding content till CSS
is ready
  • Loading branch information
jaredhirsch committed Sep 1, 2017
1 parent 4d41d17 commit c25b919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/pages/homepage/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Head extends React.Component {
render() {
return (
<reactruntime.HeadTemplate {...this.props}>
<link rel="stylesheet" href={ this.props.staticLink("/static/css/home.css") } />
<script src={this.props.staticLink("/static/js/homepage-bundle.js")} async></script>
<meta name="viewport" content="width=320, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<Localized id="homePageDescription">
Expand All @@ -26,7 +27,6 @@ class Head extends React.Component {
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:image" content={ this.props.staticLink("/static/img/onboarding-1.png") } />
<meta name="twitter:image" content={ this.props.staticLink("/static/img/onboarding-1.png") } />
<link rel="stylesheet" href={ this.props.staticLink("/static/css/home.css") } />
</reactruntime.HeadTemplate>
);
}
Expand Down

0 comments on commit c25b919

Please sign in to comment.