Skip to content

Commit

Permalink
perf(prerendering): use media query to prevent blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jun 6, 2019
1 parent de5f3d1 commit a1c760a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/prerender/prerender-template-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function inlineStyleSheets(config: d.Config, doc: Document, outputTarget: d.Outp
inlinedStyles.setAttribute('data-styles', '');

// since it's not longer a critical resource
link.setAttribute('media', '(max-width: 1px)');
link.setAttribute('importance', 'low');

// move <link rel="stylesheet"> to the end of <body>
Expand Down

0 comments on commit a1c760a

Please sign in to comment.