2020-05-09 21:48:52 +02:00
|
|
|
import { getCLS, getFID, getFCP, getLCP, getTTFB } from 'web-vitals'
|
|
|
|
|
|
|
|
export default onPerfEntry => {
|
|
|
|
getCLS(onPerfEntry)
|
|
|
|
getFID(onPerfEntry)
|
|
|
|
getFCP(onPerfEntry)
|
|
|
|
getLCP(onPerfEntry)
|
|
|
|
getTTFB(onPerfEntry)
|
2020-02-29 00:44:03 +01:00
|
|
|
}
|