Skip to content

Commit 8d0a47c

Browse files
committed
Add fetchpriority="high" to Hero Image
1 parent 05491af commit 8d0a47c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pages/index.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
import { CldVideoPlayer } from 'next-cloudinary';
1+
import { CldVideoPlayer } from "next-cloudinary";
22

33
# WebPerf Snippets
44

5-
65
A curated list of snippets to get Web Performance metrics to use in the browser console or as snippets on [Chrome DevTools](https://developer.chrome.com/docs/devtools/).
76

8-
<picture style={{marginTop: '20px', display: 'block'}}>
7+
<picture style={{ marginTop: "20px", display: "block" }}>
98
<img
10-
style={{aspectRatio: 342/214}}
9+
style={{ aspectRatio: 342 / 214 }}
1110
sizes="85vw"
1211
srcset="https://res.cloudinary.com/nucliweb/image/upload/c_scale,f_auto,q_auto,w_600/v1685735993/webperf-snippets/DevTools-Snippets.png 600w,
1312
https://res.cloudinary.com/nucliweb/image/upload/c_scale,f_auto,q_auto,w_1200/v1685735993/webperf-snippets/DevTools-Snippets.png 1200w"
1413
src="https://res.cloudinary.com/nucliweb/image/upload/c_scale,f_auto,q_auto,w_342/v1685735993/webperf-snippets/DevTools-Snippets.png"
1514
loading="eager"
1615
decoding="sync"
17-
alt="Chrome DevTools"/>
16+
fetchpriority="high"
17+
alt="Chrome DevTools"
18+
/>
1819
</picture>
1920

2021
## How to use
@@ -42,12 +43,10 @@ You can use the webperf-snippets as a Snippet in the Chrome DevTools Sources tab
4243

4344
### Video
4445

45-
<div style={{marginTop: '20px', display: 'block'}}>
46+
<div style={{ marginTop: "20px", display: "block" }}>
4647
<CldVideoPlayer
4748
width="1920"
4849
height="1080"
4950
src="webperf-snippets/devtools-new-snippet"
50-
/>
51+
/>
5152
</div>
52-
53-

0 commit comments

Comments
 (0)