Eliminate render-blocking resources (#220)

This commit is contained in:
lapphan 2020-07-07 03:07:02 +07:00 committed by GitHub
parent cd14b23e95
commit 7ce1faca6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 11 additions and 11 deletions

View file

@ -4,7 +4,7 @@ This template is used for the author page.
{{!-- This block loads specific styles for the author page --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/listing.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/listing.css"}}" media="screen" rel="preload" as="style" />
{{/contentFor}}
{{!-- The tag below means: insert everything in this file

View file

@ -25,7 +25,7 @@
font-display: swap;
}
</style>
<link rel="stylesheet" type="text/css" href="{{asset "css/app.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/app.css"}}" media="screen" rel="preload" as="style" />
{{!-- This #block helper will inject a stylesheet for a specific page --}}
{{{block "styles"}}}

View file

@ -4,7 +4,7 @@ This error template is used for all 404 errors, which might occur on your site.
{{!-- This block loads specific styles for the 404 page --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/404.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/404.css"}}" media="screen" rel="preload" as="style" />
{{/contentFor}}
{{!-- The tag below means: insert everything in this file

View file

@ -5,8 +5,8 @@ It can be used also as the home page or the default page.
{{!-- This block loads specific styles for the index page --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/home.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/listing.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/home.css"}}" media="screen" rel="preload" as="style" />
<link rel="stylesheet" type="text/css" href="{{asset "css/listing.css"}}" media="screen" rel="preload" as="style" />
{{/contentFor}}
{{!-- The tag below means: insert everything in this file

View file

@ -5,7 +5,7 @@ You must first create a page called Authors in the dashboard to enable it.
{{!-- This block loads specific styles for the authors page --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/listing.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/listing.css"}}" media="screen" rel="preload" as="style" />
{{/contentFor}}
{{!-- The tag below means: insert everything in this file

View file

@ -4,7 +4,7 @@ This template is used for the subscription page.
{{!-- This block loads specific styles for the newsletter page --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/newsletter.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/newsletter.css"}}" media="screen" rel="preload" as="style" />
{{/contentFor}}
{{!-- The tag below means: insert everything in this file

View file

@ -4,7 +4,7 @@ This template is used for the posts that are marked as pages.
{{!-- This block loads specific styles for the post page --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/post.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/post.css"}}" media="screen" rel="preload" as="style" />
{{/contentFor}}
{{!-- The tag below means: insert everything in this file

View file

@ -4,7 +4,7 @@ This template is used for the post page.
{{!-- This block loads specific styles for the post page --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/post.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/post.css"}}" media="screen" rel="preload" as="style" />
{{/contentFor}}
{{!-- The tag below means: insert everything in this file

View file

@ -4,7 +4,7 @@ This template is used for the subscription page.
{{!-- This block loads specific styles for the newsletter page --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/newsletter.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/newsletter.css"}}" media="screen" rel="preload" as="style" />
{{/contentFor}}
{{!-- The tag below means: insert everything in this file

View file

@ -4,7 +4,7 @@ This template is used for the tag page.
{{!-- This block loads specific styles for the tag page --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/listing.css"}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{asset "css/listing.css"}}" media="screen" rel="preload" as="style" />
{{/contentFor}}
{{!-- The tag below means: insert everything in this file