Skip to content
Snippets Groups Projects
Unverified Commit a86abf59 authored by Aditya Telange's avatar Aditya Telange
Browse files

Preload `profileMode image` and `label icon`

before they are discovered in HTML
parent 24e5d82e
No related branches found
No related tags found
No related merge requests found
......@@ -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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment