a6ee115908
- Remove separate mobile image (was causing file bloat and complexity) - Use desktop.webp (716 KB) for all screen sizes via media query - Browser's background-size: cover handles responsive display - Simplify preload-images.html to single image preload - Cleaner CSS without unnecessary file duplication
10 lines
286 B
HTML
10 lines
286 B
HTML
<!-- Preload critical images for better performance -->
|
|
{{- with .Params.image }}
|
|
<link rel="preload" as="image" href="{{ . }}">
|
|
{{- end }}
|
|
|
|
{{- if .IsHome }}
|
|
<!-- Preload background image (same for all devices) -->
|
|
<link rel="preload" as="image" href="images/desktop.webp">
|
|
{{- end }}
|