Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
eliminate render blocking resourcces
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Mar 22, 2022
1 parent 550d8f9 commit ac7cb08
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,14 @@ export const onPreRenderHTML = ({
const globalStyleHref = node.props['data-href']

if (globalStyleHref) {
return <link href={globalStyleHref} rel="stylesheet" type="text/css" />
return (
<link
href={globalStyleHref}
rel="stylesheet"
type="text/css"
media="screen"
/>
)
}

return node
Expand Down

0 comments on commit ac7cb08

Please sign in to comment.