Fetch Priority for a bit of added juicing
This commit is contained in:
@@ -67,6 +67,7 @@ const createPicture = (item) => {
|
|||||||
img.height = item.height || 300;
|
img.height = item.height || 300;
|
||||||
img.width = item.width || 300;
|
img.width = item.width || 300;
|
||||||
img.loading = item.loading || 'lazy';
|
img.loading = item.loading || 'lazy';
|
||||||
|
img.fetchpriority = item.fetchpriority || undefined;
|
||||||
pic.appendChild(img);
|
pic.appendChild(img);
|
||||||
return pic;
|
return pic;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -80,7 +80,8 @@
|
|||||||
"alt": "Sunny living room with stylish seating and vibrant artwork.",
|
"alt": "Sunny living room with stylish seating and vibrant artwork.",
|
||||||
"height": 200,
|
"height": 200,
|
||||||
"width": 300,
|
"width": 300,
|
||||||
"loading": "eager"
|
"loading": "eager",
|
||||||
|
"fetchpriority": "high"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "image",
|
"type": "image",
|
||||||
@@ -88,7 +89,8 @@
|
|||||||
"caption": "Relaxation elevated—your stylish living space awaits.",
|
"caption": "Relaxation elevated—your stylish living space awaits.",
|
||||||
"alt": "Spacious living area featuring elegant furniture and tasteful decor.",
|
"alt": "Spacious living area featuring elegant furniture and tasteful decor.",
|
||||||
"height": 200,
|
"height": 200,
|
||||||
"width": 300
|
"width": 300,
|
||||||
|
"fetchpriority": "high"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "image",
|
"type": "image",
|
||||||
@@ -137,7 +139,8 @@
|
|||||||
"alt": "Private ensuite bathroom featuring contemporary design and premium finishes.",
|
"alt": "Private ensuite bathroom featuring contemporary design and premium finishes.",
|
||||||
"height": 450,
|
"height": 450,
|
||||||
"width": 300,
|
"width": 300,
|
||||||
"loading": "eager"
|
"loading": "eager",
|
||||||
|
"fetchpriority": "high"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "image",
|
"type": "image",
|
||||||
|
|||||||
Reference in New Issue
Block a user