Skip to main content

markResourceTiming

method Performance.markResourceTiming
Jump to headingPerformance.markResourceTiming(
timingInfo: object,
requestedUrl: string,
initiatorType: string,
global: object,
cacheMode: "" | "local",
bodyInfo: object,
responseStatus: number,
deliveryType?: string,
): PerformanceResourceTiming

Creates a new PerformanceResourceTiming entry in the Resource Timeline. A PerformanceResourceTiming is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'resource'. Performance resources are used to mark moments in the Resource Timeline.

Parameters Jump to heading

Jump to headingrequestedUrl: string

The resource url

Jump to headinginitiatorType: string

The initiator name, e.g: 'fetch'

Jump to headingglobal: object
Jump to headingcacheMode: "" | "local"

The cache mode must be an empty string ('') or 'local'

Jump to headingresponseStatus: number

The response's status code

optional
Jump to headingdeliveryType: string

The delivery type. Default: ''.

Return Type Jump to heading

Back to top