Skip to content

Commit

Permalink
Add preload in public/index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Jan 15, 2019
1 parent 5767740 commit 760fca0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -23,6 +23,9 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>%REACT_APP_NAME%</title>
<% for ( var css in htmlWebpackPlugin.files.css ) { %>

This comment has been minimized.

Copy link
@r17x

r17x Jan 15, 2019

Author Owner

Fixed Eliminate render-blocking resources #3

<link rel="preload" as="style" href="<%=htmlWebpackPlugin.files.css[css]%>" as="style" onload='this.rel="stylesheet"'>
<% } %>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>

0 comments on commit 760fca0

Please sign in to comment.