MCPcopy Create free account

hub / github.com/GoogleChrome/web-vitals / functions

Functions106 in github.com/GoogleChrome/web-vitals

↓ 11 callersFunctionbindReporter
( callback: (metric: Extract<MetricType, {name: MetricName}>) => void, metric: Extract<MetricType, {name:
src/lib/bindReporter.ts:32
↓ 10 callersFunctioninitMetric
( name: MetricName, value: number = -1, navigationType?: MetricType['navigationType'], navigationId: n
src/lib/initMetric.ts:23
↓ 9 callersFunctioninitUnique
(identityObj: object, ClassObj: new () => T)
src/lib/initUnique.ts:27
↓ 7 callersFunctioncheckSoftNavsEnabled
(opts?: ReportOpts)
src/lib/softNavs.ts:19
↓ 7 callersFunctiongetBFCacheRestoreTime
()
src/lib/bfcache.ts:23
↓ 7 callersFunctiongetBeacons
(opts = {})
test/utils/beacons.js:38
↓ 7 callersFunctionobserve
( types: K[], callback: (entries: Array<PerformanceEntryMap[K][number]>) => void, opts: PerformanceObser
src/lib/observe.ts:38
↓ 6 callersFunctionbeaconCountIs
(count, opts = {})
test/utils/beacons.js:25
↓ 6 callersMethodgetEntriesByType
( type: K, )
src/types.ts:49
↓ 6 callersFunctiongetNavigationEntry
()
src/lib/getNavigationEntry.ts:17
↓ 6 callersFunctiononBFCacheRestore
(cb: onBFCacheRestoreCallback)
src/lib/bfcache.ts:25
↓ 5 callersFunctionclearBeacons
()
test/utils/beacons.js:68
↓ 5 callersFunctiongetActivationStart
()
src/lib/getActivationStart.ts:19
↓ 5 callersFunctiongetVisibilityWatcher
(reset = false)
src/lib/getVisibilityWatcher.ts:63
↓ 5 callersFunctionnavigateTo
(urlPath, opts)
test/utils/navigateTo.js:24
↓ 5 callersFunctionstubForwardBack
(visibilityStateAfterRestore)
test/utils/stubForwardBack.js:22
↓ 4 callersFunctionbrowserSupportsEntry
(type)
test/utils/browserSupportsEntry.js:23
↓ 4 callersFunctionstubVisibilityChange
(visibilityState)
test/utils/stubVisibilityChange.js:22
↓ 4 callersFunctionwhenActivated
(callback: () => void)
src/lib/whenActivated.ts:17
↓ 3 callersMethod_processEntry
(entry: LargestContentfulPaint)
src/lib/LCPEntryManager.ts:21
↓ 3 callersFunctiondoubleRAF
(cb: () => unknown)
src/lib/doubleRAF.ts:17
↓ 3 callersFunctionfirstContentfulPaint
()
test/utils/firstContentfulPaint.js:22
↓ 3 callersFunctiongetLoadState
(timestamp: number)
src/lib/getLoadState.ts:20
↓ 3 callersFunctiongetSelector
(node: Node | null)
src/lib/getSelector.ts:26
↓ 3 callersFunctionnextFrame
()
test/utils/nextFrame.js:22
↓ 3 callersFunctionwebVitalsLoaded
()
test/utils/webVitalsLoaded.js:22
↓ 3 callersFunctionwhenIdleOrHidden
(cb: () => void)
src/lib/whenIdleOrHidden.ts:23
↓ 2 callersFunctiongetInteractionCount
()
src/lib/polyfills/interactionCountPolyfill.ts:54
↓ 2 callersFunctiongetIntersectingLoAFs
( start: DOMHighResTimeStamp, end: DOMHighResTimeStamp, )
src/attribution/onINP.ts:278
↓ 2 callersFunctiongetLargestLayoutShiftSource
(sources: LayoutShiftAttribution[])
src/attribution/onCLS.ts:33
↓ 2 callersFunctionimagesPainted
()
test/utils/imagesPainted.js:22
↓ 2 callersFunctioninitNewCLSMetric
( navigationType?: Metric['navigationType'], navigationId?: number, navigationInteract
src/onCLS.ts:73
↓ 2 callersFunctioninitNewINPMetric
( navigationType?: Metric['navigationType'], navigationId?: number, navigationInteractionId?
src/onINP.ts:101
↓ 2 callersFunctioninitNewLCPMetric
( navigation?: Metric['navigationType'], navigationId?: number, navigationInteractionId?: nu
src/onLCP.ts:66
↓ 2 callersFunctionqueueCleanup
()
src/attribution/onINP.ts:220
↓ 2 callersFunctionrunOnce
(cb: () => void)
src/lib/runOnce.ts:17
↓ 2 callersFunctionstoreSoftNavEntry
( map: Map<number, PerformanceSoftNavigation>, entry: PerformanceSoftNavigation, )
src/lib/softNavs.ts:34
↓ 2 callersFunctionupdateAndReportMetric
(forceReport: boolean = false)
src/onCLS.ts:98
↓ 2 callersFunctionupdateINPMetric
()
src/onINP.ts:126
↓ 1 callersMethod_estimateP98LongestInteraction
* Returns the estimated p98 longest interaction based on the stored * interaction candidates and the interaction count for the current page.
src/lib/InteractionManager.ts:74
↓ 1 callersMethod_resetInteractions
()
src/lib/InteractionManager.ts:64
↓ 1 callersFunctionallEntriesPresentTogether
(entries)
test/e2e/onINP-test.js:1870
↓ 1 callersFunctionallEntriesValid
(entries)
test/e2e/onINP-test.js:1855
↓ 1 callersFunctionassertFullReportsAreCorrect
(beacons)
test/e2e/onLCP-test.js:1425
↓ 1 callersFunctionassertIsCloseTo
(actual, expected, maxDelta)
test/utils/assertIsCloseTo.js:23
↓ 1 callersFunctionassertStandardReportsAreCorrect
(beacons)
test/e2e/onLCP-test.js:1413
↓ 1 callersFunctionassertValidEntry
* Accepts a PerformanceNavigationTimingEntry (or shim) and asserts that it * has all the expected properties. * @param {Object} entry
test/e2e/onTTFB-test.js:27
↓ 1 callersFunctionattributeCLS
(metric: CLSMetric)
src/attribution/onCLS.ts:85
↓ 1 callersFunctionattributeFCP
(metric: FCPMetric)
src/attribution/onFCP.ts:45
↓ 1 callersFunctionattributeINP
(metric: INPMetric)
src/attribution/onINP.ts:394
↓ 1 callersFunctionattributeLCP
(metric: LCPMetric)
src/attribution/onLCP.ts:72
↓ 1 callersFunctionattributeLoAFDetails
(attribution: INPAttribution)
src/attribution/onINP.ts:298
↓ 1 callersFunctionattributeTTFB
(metric: TTFBMetric)
src/attribution/onTTFB.ts:25
↓ 1 callersFunctionconfigurePlugins
({module})
rollup.config.js:19
↓ 1 callersFunctioncontainsEntry
(entries, name, target)
test/e2e/onINP-test.js:1849
↓ 1 callersFunctiondomReadyState
(state)
test/utils/domReadyState.js:23
↓ 1 callersFunctiongenerateUniqueID
()
src/lib/generateUniqueID.ts:22
↓ 1 callersFunctiongetAttribution
* * @param {Array} entries * @return {Object}
test/e2e/onCLS-test.js:1542
↓ 1 callersFunctiongetInteractionCountForNavigation
()
src/lib/InteractionManager.ts:42
↓ 1 callersFunctiongetLargestLayoutShiftEntry
(entries: LayoutShift[])
src/attribution/onCLS.ts:29
↓ 1 callersFunctiongetName
(node: Node)
src/lib/getSelector.ts:17
↓ 1 callersFunctiongetRating
( value: number, thresholds: MetricRatingThresholds, )
src/lib/bindReporter.ts:19
↓ 1 callersFunctiongetTTFBBeacon
()
test/e2e/onTTFB-test.js:694
↓ 1 callersFunctionhandleEntries
( entries: ( | LargestContentfulPaint | InteractionContentfulPaint | Performance
src/onLCP.ts:120
↓ 1 callersFunctionhandleEntries
( entries: (LayoutShift | PerformanceSoftNavigation)[], )
src/onCLS.ts:119
↓ 1 callersFunctionhandleEntries
( entries: (PerformanceEventTiming | PerformanceSoftNavigation)[], forceReport: boolean = false,
src/onINP.ts:150
↓ 1 callersFunctionhandleSoftNavEntry
(entry: PerformanceSoftNavigation)
src/onLCP.ts:96
↓ 1 callersFunctionhandleSoftNavEntry
(entry: PerformanceSoftNavigation)
src/onCLS.ts:108
↓ 1 callersFunctionhandleSoftNavEntry
(entry: PerformanceSoftNavigation)
src/onINP.ts:138
↓ 1 callersFunctionhideAndReshowPage
()
test/e2e/onCLS-test.js:1557
↓ 1 callersFunctionhideAndReshowPage
()
test/e2e/onINP-test.js:1893
↓ 1 callersFunctionhideAndReshowPage
()
test/e2e/onLCP-test.js:1451
↓ 1 callersFunctioninitHiddenTime
()
src/lib/getVisibilityWatcher.ts:23
↓ 1 callersFunctioninitInteractionCountPolyfill
()
src/lib/polyfills/interactionCountPolyfill.ts:61
↓ 1 callersFunctiononFCP
( onReport: (metric: FCPMetric) => void, opts: ReportOpts = {}, )
src/onFCP.ts:39
↓ 1 callersFunctionreadBody
(req)
test/server.js:32
↓ 1 callersFunctionsetBlockingTime
(event, value)
test/e2e/onINP-test.js:1878
↓ 1 callersFunctionsimulateUserLikeClick
(element)
test/e2e/onINP-test.js:1883
↓ 1 callersFunctionsleep
(ms)
test/server.js:41
↓ 1 callersFunctiontriggerLayoutShift
* Adds * @return {void}
test/e2e/onCLS-test.js:1529
↓ 1 callersFunctionwaitUntilIdle
()
test/utils/waitUntilIdle.js:22
↓ 1 callersFunctionwhenReady
(callback: () => void)
src/onTTFB.ts:34
Method_processEntry
* Takes a performance entry and adds it to the list of worst interactions * if its duration is long enough to make it among the worst. If the *
src/lib/InteractionManager.ts:108
Method_processEntry
(entry: LayoutShift)
src/lib/LayoutShiftManager.ts:23
FunctioncleanupEntries
()
src/attribution/onINP.ts:228
FunctionfinalizeLCP
(event: Event)
src/onLCP.ts:212
FunctionfirstHiddenTime
()
src/lib/getVisibilityWatcher.ts:106
FunctiongroupEntriesByRenderTime
(entry: PerformanceEventTiming)
src/attribution/onINP.ts:161
FunctionhandleEntries
(entries: FCPMetric['entries'])
src/onFCP.ts:54
FunctionhandleLoAFEntries
( entries: PerformanceLongAnimationFrameTiming[], )
src/attribution/onINP.ts:127
FunctionhandleSoftNavEntries
(entries: PerformanceSoftNavigation[])
src/onFCP.ts:115
FunctiononCLS
( onReport: (metric: CLSMetric) => void, opts: ReportOpts = {}, )
src/onCLS.ts:59
FunctiononCLS
( onReport: (metric: CLSMetricWithAttribution) => void, opts: AttributionReportOpts = {}, )
src/attribution/onCLS.ts:58
FunctiononFCP
( onReport: (metric: FCPMetricWithAttribution) => void, opts: AttributionReportOpts = {}, )
src/attribution/onFCP.ts:31
FunctiononHidden
()
src/lib/whenIdleOrHidden.ts:40
FunctiononHidden
(cb: () => void)
src/lib/getVisibilityWatcher.ts:109
FunctiononINP
( onReport: (metric: INPMetric) => void, opts: INPReportOpts = {}, )
src/onINP.ts:78
FunctiononINP
( onReport: (metric: INPMetricWithAttribution) => void, opts: INPAttributionReportOpts = {}, )
src/attribution/onINP.ts:85
FunctiononLCP
( onReport: (metric: LCPMetric) => void, opts: ReportOpts = {}, )
src/onLCP.ts:50
FunctiononLCP
( onReport: (metric: LCPMetricWithAttribution) => void, opts: AttributionReportOpts = {}, )
src/attribution/onLCP.ts:41
next →1–100 of 106, ranked by callers