markResourceTiming
abstract fun markResourceTiming(timingInfo: Any, requestedUrl: String, initiatorType: String, global: Any, cacheMode: PerformanceMarkResourceTimingCacheMode, bodyInfo: Any, responseStatus: Number, deliveryType: String = definedExternally): PerformanceResourceTiming(source)
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.
Since
v18.2.0, v16.17.0
Parameters
timingInfo
requestedUrl
The resource url
initiatorType
The initiator name, e.g: 'fetch'
global
cacheMode
The cache mode must be an empty string ('') or 'local'
bodyInfo
responseStatus
The response's status code
deliveryType
The delivery type. Default: ''.