File tree 2 files changed +11
-9
lines changed
snippets/templates/home/playground
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,16 @@ function img($file, array $props = [])
59
59
$ height ??= $ file ->height ();
60
60
61
61
$ img = '<img ' . attr ([
62
- 'alt ' => $ props ['alt ' ] ?? '' ,
63
- 'class ' => $ props ['class ' ] ?? null ,
64
- 'style ' => $ props ['style ' ] ?? null ,
65
- 'loading ' => $ loading ?? null ,
66
- 'sizes ' => $ sizes ,
67
- 'src ' => $ src ,
68
- 'srcset ' => $ srcset ?? null ,
69
- 'width ' => $ width ,
70
- 'height ' => $ height
62
+ 'alt ' => $ props ['alt ' ] ?? '' ,
63
+ 'class ' => $ props ['class ' ] ?? null ,
64
+ 'style ' => $ props ['style ' ] ?? null ,
65
+ 'loading ' => $ loading ?? null ,
66
+ 'fetchpriority ' => $ props ['fetchpriority ' ] ?? null ,
67
+ 'sizes ' => $ sizes ,
68
+ 'src ' => $ src ,
69
+ 'srcset ' => $ srcset ?? null ,
70
+ 'width ' => $ width ,
71
+ 'height ' => $ height
71
72
]) . '> ' ;
72
73
73
74
if (empty ($ props ['lightbox ' ]) === false && $ props ['lightbox ' ] !== false ) {
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class="playground-header-figure-wrapper"
26
26
'width ' => 1520
27
27
],
28
28
'lazy ' => false ,
29
+ 'fetchpriority ' => 'high ' ,
29
30
// sizes generated with https://ausi.github.io/respimagelint/
30
31
'sizes ' => '(min-width: 1860px) 1520px, (min-width: 820px) calc(92.16vw - 176px), 100vw ' ,
31
32
'srcset ' => [
You can’t perform that action at this time.
0 commit comments