performance tweaks

This commit is contained in:
Vrifox 2020-09-26 17:57:12 +02:00
parent c512e8f8e2
commit bfb8c020f8
7 changed files with 10 additions and 9 deletions

View file

@ -1,5 +1,5 @@
{{ define "stylesheet" }}{{ $scss := resources.Get "/_default/list.scss" }}{{ $style := $scss | resources.ToCSS }}
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" rel="preload" />
{{ end }}
{{ define "main" }}
@ -21,7 +21,7 @@
<p>{{ . }}</p>
{{ end }}
{{ with .Params.featured_image }}
<img src="{{ . | relURL }}">
<img src="{{ . | relURL }}" loading="lazy">
{{ end }}
</article>
</a>