Use same desktop.webp for all devices - simpler and cleaner
- 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
This commit is contained in:
@@ -4,9 +4,6 @@
|
||||
{{- end }}
|
||||
|
||||
{{- if .IsHome }}
|
||||
<!-- Preload background images for adaptive loading -->
|
||||
<link rel="preload" as="image" href="images/desktop.webp" media="(min-width: 737px)">
|
||||
<link rel="preload" as="image" href="images/mobile.webp" media="(max-width: 736px)">
|
||||
<!-- Fallback preload -->
|
||||
<link rel="preload" as="image" href="{{ .Site.Params.backgroundPath }}">
|
||||
<!-- Preload background image (same for all devices) -->
|
||||
<link rel="preload" as="image" href="images/desktop.webp">
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user