diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-07-25 12:18:39 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-07-25 12:30:52 +0530 |
| commit | 5e129bde1d450cf199bcab70a6a49f5f49820da5 (patch) | |
| tree | d2d69d512b1c20f4c63fb5061d2414d2f74650af | |
| parent | e85488ba1b060b74aeec0986c86da0fd19467ef2 (diff) | |
assets : use preload and defer
| -rw-r--r-- | layouts/partials/head.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d12f246..423d453 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -25,7 +25,8 @@ {{ $404 := resources.Get "css/404.css" | minify }} {{ $style := slice $theme $reset $header $main $postentry $postsingle $terms $archive $footer $404 | resources.Concat "stylesheet.css" | minify }} {{ $stylesheet := slice $anoldhope $style | resources.Concat "css/stylesheet.css" | minify | fingerprint }} -<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="stylesheet"> +<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" + as="style"> <link href="{{ "custom.css" | absURL }}" rel="stylesheet"> <!-- Favicons --> <link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}"> |
