Skip to content

Commit

Permalink
Load external CSS after document body
Browse files Browse the repository at this point in the history
  • Loading branch information
m-allanson committed Jan 18, 2018
1 parent 65d8cd1 commit a4ab68e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/src/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export default class HTML extends React.Component {
href={`/safari-pinned-tab.svg`}
color="#5bbad5"
/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
{css}
</head>
Expand All @@ -82,6 +81,7 @@ export default class HTML extends React.Component {
dangerouslySetInnerHTML={{ __html: this.props.body }}
/>
{this.props.postBodyComponents}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
</body>
</html>
)
Expand Down

0 comments on commit a4ab68e

Please sign in to comment.