What is WebPerf-Snippets?
WebPerf-Snippets is a curated list of snippets to get Web Performance metrics to use in the browser console or as snippets on Chrome DevTools.
How to use WebPerf-Snippets?
To use the webperf-snippets as a Snippet in the Chrome DevTools Sources tab do the following:
- Copy any of the WebPerf Snippets
- Open Chrome DevTools
- Select the Sources tab
- Select the Snippets sub tab
- Click New snippet button, e.g. LCP
- Write the snippet name, LCP
- Paste the copied code at the right area
- Run the snippet.