mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-23 14:19:27 -05:00
Preload profileMode image
and label icon
before they are discovered in HTML
This commit is contained in:
parent
24e5d82ecb
commit
a86abf5994
@ -58,6 +58,16 @@
|
||||
<link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" rel="preload stylesheet" as="style">
|
||||
{{- end }}
|
||||
|
||||
{{- with .Site.Params.profileMode }}
|
||||
{{- if and .enabled .imageUrl }}
|
||||
<link rel="preload" href="{{ .imageUrl }}" as="image">
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- with .Site.Params.label.icon }}
|
||||
<link rel="preload" href="{{ . }}" as="image">
|
||||
{{- end }}
|
||||
|
||||
{{- /* Search */}}
|
||||
{{- if (eq .Layout `search`) -}}
|
||||
<link crossorigin="anonymous" rel="preload" as="fetch" href="../index.json">
|
||||
|
Loading…
Reference in New Issue
Block a user