web-vitals
Essential metrics for a healthy site.
File Explorer
Download Latest Version (.zip)- lint.yml
- tests.yml
- .gitignore
- pre-commit
- upgrading-to-v4.md
- upgrading-to-v5.md
- upgrading-to-v6.md
- index.ts
- onCLS.ts
- onFCP.ts
- onINP.ts
- onLCP.ts
- onTTFB.ts
- interactionCountPolyfill.ts
- bfcache.ts
- bindReporter.ts
- doubleRAF.ts
- FCPEntryManager.ts
- generateUniqueID.ts
- getActivationStart.ts
- getLoadState.ts
- getNavigationEntry.ts
- getSelector.ts
- getVisibilityWatcher.ts
- initMetric.ts
- initUnique.ts
- InteractionManager.ts
- LayoutShiftManager.ts
- LCPEntryManager.ts
- observe.ts
- runOnce.ts
- softNavs.ts
- whenActivated.ts
- whenIdleOrHidden.ts
- base.ts
- cls.ts
- fcp.ts
- inp.ts
- lcp.ts
- ttfb.ts
- index.ts
- onCLS.ts
- onFCP.ts
- onINP.ts
- onLCP.ts
- onTTFB.ts
- types.ts
- styles.css
- onCLS-test.js
- onFCP-test.js
- onINP-test.js
- onLCP-test.js
- onTTFB-test.js
- square.png
- async.js
- defer.js
- attribution-test.js
- bindReporter-test.js
- index-test.js
- initUnique-test.js
- InteractionManager-test.js
- assertIsCloseTo.js
- beacons.js
- browserSupportsEntry.js
- domReadyState.js
- firstContentfulPaint.js
- imagesPainted.js
- navigateTo.js
- nextFrame.js
- stubForwardBack.js
- stubVisibilityChange.js
- waitUntilIdle.js
- webVitalsLoaded.js
- cls.njk
- fcp.njk
- inp.njk
- layout.njk
- lcp.njk
- ttfb.njk
- server.js
- tsconfig.json
- .editorconfig
- .gitignore
- .nvmrc
- attribution.d.ts
- attribution.js
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- eslint.config.js
- LICENSE
- package-lock.json
- package.json
- README.md
- rollup.config.js
- tsconfig.json
- wdio.conf.js
# Installation Guide
1. Get the code
git clone https://github.com/GoogleChrome/web-vitals
Downloads the entire project code from GitHub to your computer.
cd web-vitals
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install web-vitals
Downloads and installs the libraries listed in package.json.
npm run build
Builds optimized production files.
npm run watch
Type this command into your terminal and run it.
npm test
Type this command into your terminal and run it.
npm run test:server
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
