Skip to content

Commit e44fa44

Browse files
committed
Add Chrome DevTools Snippets instructions
1 parent 6a85a7f commit e44fa44

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.DS_Store
2-
beta
2+
beta
3+
node_modules
4+
.next

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ A curated list of snippets to get Web Performance metrics to use in the browser
66

77
![Chrome DevTools](https://github.com/nucliweb/webperf-snippets/assets/1307927/0d7bb9c8-5f21-47c6-90c5-2707a430dacb)
88

9+
## Add snippet to Chrome DevTools
10+
11+
You can use the webperf-snippets as a Snippet in the Chrome DevTools Sources tab.
12+
13+
1. Copy any of the WebPerf Snippets
14+
2. [Open Chrome DevTools](https://developer.chrome.com/docs/devtools/open/)
15+
3. Select the Sources tab
16+
4. Select the Snippets sub tab
17+
5. Click New snippet button, e.g. [LCP](https://github.com/nucliweb/webperf-snippets#largest-contentful-paint-lcp)
18+
6. Write the snippet name, LCP
19+
7. Paste the copied code at the right area
20+
8. Run the snippet
21+
22+
## Video
23+
24+
https://github.com/nucliweb/webperf-snippets/assets/1307927/2987a2ca-3eef-4b73-8f6b-7b1e06b50040
25+
26+
927
<details>
1028
<summary>Table of Contents</summary>
1129

0 commit comments

Comments
 (0)