How to use the web-vitals.getTTFB function in web-vitals

To help you get started, we’ve selected a few web-vitals examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github broadinstitute / single_cell_portal_core / app / javascript / lib / metrics-perf.js View on Github external
export function setupWebVitalsLog() {
  const logWebVitalToBard = createWebVitalsBardReporter()

  getTTFB(logWebVitalToBard)
  getFCP(logWebVitalToBard)
  getLCP(logWebVitalToBard)
  getFID(logWebVitalToBard)
  getCLS(logWebVitalToBard)
}

web-vitals

Easily measure performance metrics in JavaScript

Apache-2.0
Latest version published 12 days ago

Package Health Score

97 / 100
Full package analysis